joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400719c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor esi, esi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], si
jne 0x140071a04
lea rcx, [rbp - 0x50]
call fcn.140003530
nop
lea rcx, [rbp - 0x50]
mov r8, qword [rbp - 0x50]
mov r9, qword [rbp - 0x38]
cmp r9, 8
cmovae rcx, r8
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x140071aaa
lea rax, [rdx - 1]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
lea rax, [rcx + rbx*2]
cmp word [rax], 0x5c
je 0x140071a5f
nop dword [rax + rax]
cmp rax, rcx
je 0x140071aa5
sub rax, 2
cmp word [rax], 0x5c
jne 0x140071a50
sub rax, rcx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140071aa5
inc rax
cmp rdx, rax
cmovb rax, rdx
lea rcx, [rbp - 0x50]
cmp r9, 8
cmovae rcx, r8
sub rdx, rax
mov qword [rbp - 0x40], rdx
lea r8, [rdx*2 + 2]
lea rdx, [rcx + rax*2]
call sub.VCRUNTIME140.dll_memmove
mov r9, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x50]
test rdx, rdx
jne 0x140071ab1
xor bl, bl
jmp 0x140071ba4
lea rcx, [rbp - 0x50]
cmp r9, 8
cmovae rcx, r8
xor r8d, r8d
lea edx, [r8 + 1]
call qword [case.0x1401ba071.68]
test eax, eax
jne 0x140071ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140071ae0
mov bl, 1
jmp 0x140071ba4
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400706c0
nop
cmp qword [rbp - 0x20], 0
jne 0x140071b34
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140071b30
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071b2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071b88
call fcn.140007ea0
mov bl, 1
jmp 0x140071b94
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov rcx, 0xffffffff80000002
call fcn.1401a5a00
movzx ebx, al
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140071b94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071b8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140071b8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov word [rbp - 0x30], si
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140071be7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140071be2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140071be2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140072dc0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rcx, rbp
xor r8d, r8d
mov rdx, r9
mov rbx, r9
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete sil
je 0x140072e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140072e41
mov rdx, rbx
mov rcx, rdi
call fcn.140072e70
mov rdx, rbx
test al, al
jne 0x140072e2e
call fcn.1400732b0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete sil
mov rdx, rbx
call fcn.1400732b0
test sil, sil
je 0x140072e17
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x14003c8e9.0]
test al, al
je 0x140072e17
mov al, 1
jmp 0x140072e19
Function at 0x14007d660
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx - 0x38]
mov rdi, rcx
add rcx, 0xffffffffffffffc8
mov ebx, edx
mov rax, qword [rax + 0x18]
call qword [case.0x14003c8e9.0]
xor esi, esi
lea rcx, [rdi - 0x38]
bt ebx, 9
jae 0x14007d7a6
call fcn.14007d380
mov rdx, qword [rdi]
mov rcx, rdi
test al, al
jne 0x14007d6d8
mov rax, qword [rdx + 0xb8]
call qword [case.0x14003c8e9.0]
neg al
sbb eax, eax
add eax, 0x2338
jmp 0x14007d885
mov rax, qword [rdx + 0x20]
call qword [case.0x14003c8e9.0]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14007d6fa
mov rdx, qword [rdi + 0x10]
mov r8d, 0x20
call fcn.14018d9d0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xb8]
call qword [case.0x14003c8e9.0]
mov rcx, qword [rdi + 0x10]
movzx ebp, al
mov r9, qword [rdi + 8]
test rcx, rcx
je 0x14007d760
mov edx, dword [rcx]
test edx, edx
je 0x14007d760
cmp edx, 1
je 0x14007d73a
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov edx, dword [rcx]
test edx, edx
jne 0x14007d723
jmp 0x14007d760
mov r8d, 0x122
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.1401a4df0
test al, al
jne 0x14007d75b
mov ebx, 0x1388
jmp 0x14007d883
lea r9, [rsp + 0x20]
xor edx, edx
mov rcx, r9
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14007d777
mov ebx, esi
jmp 0x14007d7b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14018f710
mov ecx, eax
call fcn.1401aea40
mov ebx, eax
add eax, 0xffffdcce
cmp eax, 1
jbe 0x14007d773
test bpl, bpl
je 0x14007d7ad
mov ebx, 0x2337
jmp 0x14007d883
call fcn.14007d440
mov ebx, eax
test ebx, ebx
jne 0x14007d883
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x14007d81c
mov r8d, dword [rcx]
test r8d, r8d
je 0x14007d81c
nop word [rax + rax]
mov eax, dword [rcx + 4]
lea rdx, [rcx + 8]
add rdx, rax
cmp r8d, 0xe
je 0x14007d7ed
mov r8d, dword [rdx]
mov rcx, rdx
test r8d, r8d
jne 0x14007d7d0
jmp 0x14007d81c
mov r8, rdx
test rdx, rdx
jne 0x14007d7fa
mov r8, rsi
jmp 0x14007d817
cmp dword [rdx], esi
je 0x14007d810
nop
mov eax, dword [r8 + 4]
add r8, 8
add r8, rax
cmp dword [r8], esi
jne 0x14007d800
sub r8, rdx
add r8, 8
call sub.VCRUNTIME140.dll_memmove
mov r9, qword [rdi - 8]
test r9, r9
je 0x14007d883
mov ecx, dword [r9]
test ecx, ecx
je 0x14007d883
nop dword [rax]
mov eax, dword [r9 + 4]
lea rdx, [r9 + 8]
add rdx, rax
cmp ecx, 0x14
je 0x14007d84b
mov ecx, dword [rdx]
mov r9, rdx
test ecx, ecx
jne 0x14007d830
jmp 0x14007d883
mov rcx, rdx
test rdx, rdx
je 0x14007d878
cmp dword [rdx], esi
je 0x14007d86e
nop word [rax + rax]
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
cmp dword [rcx], esi
jne 0x14007d860
mov rsi, rcx
sub rsi, rdx
add rsi, 8
mov r8, rsi
mov rcx, r9
call sub.VCRUNTIME140.dll_memmove
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14007e200
Capabilities:
Read file via mapping

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
cmp qword [rcx + 0x48], 0
mov rdi, r9
mov r13, r8
mov r12, rdx
mov rbx, rcx
je 0x14007e329
cmp rdx, 0xffffffffffffffff
jne 0x14007e23d
mov r12, qword [rcx + 0x40]
mov ecx, dword [rcx + 0x38]
mov rax, r12
cqo
xor r15d, r15d
idiv rcx
mov rdx, r12
mov rsi, rax
lea rax, [r12 + r9]
imul rsi, rcx
mov rcx, qword [rbx + 0x50]
sub rdx, rsi
mov qword [rsp + 0x60], rdx
cmp rax, rcx
jbe 0x14007e270
mov rdi, rcx
sub rdi, r12
test rdi, rdi
je 0x14007e31c
nop dword [rax]
mov r14d, dword [rbx + 0x38]
mov rax, qword [rbx + 0x50]
mov rcx, qword [rbx + 0x68]
sub rax, rsi
cmp rax, r14
cmovb r14, rax
test rcx, rcx
je 0x14007e2af
cmp qword [rbx + 0x70], rsi
je 0x14007e2da
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x68], 0
mov rcx, qword [rbx + 0x48]
mov r8, rsi
shr r8, 0x20
mov r9d, esi
mov edx, 4
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, qword [rsp + 0x60]
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], rsi
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x14007e329
lea r8, [rax + rdx]
mov rbp, r14
sub rbp, rdx
mov rdx, r13
cmp rdi, rbp
cmovb rbp, rdi
mov r9, rbp
call fcn.14007e3d0
test al, al
je 0x14007e329
xor edx, edx
add r15, rbp
add r13, rbp
mov qword [rsp + 0x60], rdx
add rsi, r14
sub rdi, rbp
jne 0x14007e280
lea rcx, [r15 + r12]
mov rax, r15
mov qword [rbx + 0x40], rcx
jmp 0x14007e330
mov rax, 0xffffffffffffffff
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 0x14007f100
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea ecx, [rsi + 0x78]
call fcn.1401c51ec
mov rbx, rax
mov qword [rsp + 0x88], rax
lea rax, vtable.AmonBaseStream.0
mov qword [rbx], rax
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], 7
mov word [rbx + 8], si
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
lea rax, vtable.AmonMappedStream.0
mov qword [rbx], rax
mov dword [rbx + 0x38], esi
mov qword [rbx + 0x40], rsi
lea rax, [rbx + 0x48]
mov qword [rsp + 0x90], rax
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, 0x400000
mov ecx, dword [rsp + 0x50]
div ecx
imul eax, ecx
cmp ecx, eax
cmovb ecx, eax
mov dword [rbx + 0x38], ecx
mov qword [rdi], rbx
mov dword [rsp + 0x20], 1
mov rax, rdi
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140080ee0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x48
cmp byte [rdx + 8], 0
mov rbx, r9
movsxd rbp, r8d
mov r14, rdx
mov r15, rcx
je 0x1400810a6
mov qword [rsp + 0x70], rsi
test r8d, r8d
jns 0x140080f0f
xor esi, esi
jmp 0x140080f71
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor esi, esi
test eax, eax
cmovne rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x14008108a
mov rcx, qword [0x140256950]
test rcx, rcx
jne 0x140080f59
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, qword [rsp + 0x78]
mov qword [0x140256950], rcx
test rcx, rcx
je 0x14008108a
xor edx, edx
movabs rax, 0xf423ffff0bdc0
div rcx
test rax, rax
je 0x14008108a
mov qword [rsp + 0x88], r12
mov r12d, 0xffffffff
mov qword [rsp + 0x40], r13
mov r13d, 0xffffffff
mov qword [rsp + 0x80], rdi
xor ecx, ecx
cmp qword [rbx + 0x70], 0
jne 0x140081086
cmp byte [rbx + 0x18], 0
jne 0x140081086
mov r8d, ebp
sub r8d, ecx
test ebp, ebp
cmovs r8d, r13d
cmp byte [r14 + 8], 0
je 0x1400810c2
mov rdx, qword [r14]
test r8d, r8d
mov rcx, r15
cmovs r8d, r12d
call qword [0x14024f1e0]
test ebp, ebp
js 0x140080f92
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edi, edi
test eax, eax
cmovne rdi, qword [rsp + 0x78]
cmp rdi, rsi
jae 0x140080ff5
xor ecx, ecx
jmp 0x14008102f
mov rcx, qword [0x140256950]
test rcx, rcx
jne 0x14008101d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, qword [rsp + 0x20]
mov qword [0x140256950], rcx
test rcx, rcx
je 0x14008102f
sub rdi, rsi
xor edx, edx
imul rax, rdi, 0xf4240
div rcx
mov rcx, rax
movabs rax, 0x624dd2f1a9fbe77
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp rbp, rcx
ja 0x140080f94
cmp qword [rbx + 0x70], 0
jne 0x140081086
cmp byte [rbx + 0x18], 0
jne 0x140081086
xor al, al
mov rdi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
mov al, 1
jmp 0x140081061
lea rcx, [rsp + 0x28]
call fcn.140074020
lea rdx, [0x14024ac48]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x28]
call fcn.140074020
lea rdx, [0x14024ac48]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x28]
call fcn.140074020
lea rdx, [0x14024ac48]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14008e640
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov rbp, rdx
mov rdi, rcx
xor r8d, r8d
mov rdx, r9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete sil
je 0x14008e6d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14008e6d0
mov rdx, rbx
mov rcx, rdi
call fcn.140072e70
mov rdx, rbx
test al, al
jne 0x14008e6bd
call fcn.1400732b0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete sil
mov rdx, rbx
call fcn.1400732b0
test sil, sil
je 0x14008e69e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x50]
call qword [case.0x14003c8e9.0]
test al, al
je 0x14008e69e
xor r8d, r8d
xor edx, edx
lea rcx, str._SystemRoot_ELAMBKUPeelam.sys
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, eax
test eax, eax
je 0x14008e69e
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.140011470
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x30]
lea rcx, str._SystemRoot_ELAMBKUPeelam.sys
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, eax
test rax, rax
je 0x14008e7e3
cmp rax, qword [rsp + 0x30]
ja 0x14008e7e3
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14008e78b
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
call fcn.1400732b0
mov bl, 1
jmp 0x14008e7e5
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14008e7c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e7c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008e81e
call fcn.140007ea0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
jmp 0x14008e69e
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14008e82a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e825
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008e825
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
movzx eax, bl
jmp 0x14008e6a0
Function at 0x1400aa4c0
Capabilities:
Terminate thread

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 r14
push r15
sub rsp, 0x60
movzx r15d, dl
mov rsi, rcx
xor r12d, r12d
mov dword [rax - 0x48], r12d
lea rbp, [rcx + 0x20]
mov qword [rax - 0x40], rbp
mov byte [rax - 0x38], 1
mov rcx, rbp
call qword [case.0x1401b9e8b.1]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov r14, qword [rsi + 0x18]
test r14, r14
je 0x1400aa521
lock inc dword [r14 + 8]
mov r14, qword [rsi + 0x18]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsi + 0x10]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
mov edi, 1
mov dword [rsp + 0x30], edi
mov rcx, rbp
call qword [case.0x1401b9e8b.2]
mov ebp, dword [rbx]
and edi, 0xfffffffe
mov dword [rsp + 0x30], edi
test r14, r14
je 0x1400aa58b
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x1400aa58b
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [case.0x14003c8e9.0]
lock xadd dword [r14 + 0xc], ebx
cmp ebx, 1
jne 0x1400aa58b
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x14003c8e9.0]
lea rcx, [rsi + 0x7e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rsi + 0xd00], 0
je 0x1400aa5ea
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, qword [rsi + 0xd18]
add rcx, 0xe10
cmp rcx, rax
jge 0x1400aa5e0
xor edx, edx
mov rcx, qword [rsi + 0xd00]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi + 0xd00]
call qword [case.0x1401b9e8b.6]
mov qword [rsi + 0xd00], r12
cmp qword [rsi + 0xd00], 0
jne 0x1400aa651
test ebp, ebp
je 0x1400aa651
test r15b, r15b
jne 0x1400aa618
cmp qword [rsi + 0xd18], 0
je 0x1400aa618
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, qword [rsi + 0xd18]
add rcx, 0x708
cmp rcx, rax
jg 0x1400aa651
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov r9, rsi
lea r8, [0x14008eb00]
xor edx, edx
xor ecx, ecx
call qword [case.0x1401ba071.79]
mov qword [rsi + 0xd00], rax
test rax, rax
je 0x1400aa651
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsi + 0xd18], rax
lea rcx, [rsi + 0x7e0]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400b2180
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x980], rax
mov ecx, 4
call fcn.1401adb30
mov rdi, rax
test rax, rax
je 0x1400b21c5
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x1400b21c7
xor edi, edi
mov qword [rsp + 0x40], rdi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor bl, bl
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1401960f0
test al, al
je 0x1400b2323
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x50]
lea r8, str.__wsecmdS.exe___run__hide__proxy
mov edx, 0x208
lea rcx, [rbp + 0x160]
call fcn.140040350
cmp eax, 0xffffffff
je 0x1400b2323
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x20], bl
mov r9d, 0x2001f
lea r8, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call fcn.1401a5450
test al, al
je 0x1400b2323
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x570]
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x30], 0x410
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.egui
mov rcx, rbx
call qword [0x14024f060]
test eax, eax
je 0x1400b2363
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0x160]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400b22d0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.egui
mov rcx, qword [rsp + 0x38]
call qword [case.0x1401ba071.80]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
mov rcx, qword [rsp + 0x38]
call qword [case.0x1401b9e8b.6]
nop
test rdi, rdi
je 0x1400b233c
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, rdi
call qword [case.0x1401b9e8b.6]
movzx eax, bl
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x1400b2378
mov ecx, reloc.WS2_32.dll_listen
jmp 0x1400b22ba
cmp dword [rsp + 0x30], 0x410
jbe 0x1400b238c
mov ecx, 0x7a
jmp 0x1400b22ba
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x570]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.egui
mov rcx, rbx
call qword [0x14024f060]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400b22c0
lea rdx, [rbp + 0x570]
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400b22c0
mov bl, 1
jmp 0x1400b2317
Function at 0x1400c3830
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
cmp byte [rcx], 0
jne 0x1400c3853
lea rdx, str.RebootWhenNeeded
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
ret

Function at 0x1400c9f90
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov rbp, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf0000
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400c9fcc
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp qword [rbp + 0x38], 8
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x30], rsi
jb 0x1400c9fdf
mov rdx, qword [rdx]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
call qword [case.0x1401ba071.44]
mov rsi, rax
test rax, rax
je 0x1400ca02e
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
movzx ebx, bl
cmp eax, 0x420
mov dword [rbp + 0xa0], eax
cmove ebx, ecx
mov rcx, rsi
call qword [case.0x1401ba071.43]
mov rcx, rdi
call qword [case.0x1401ba071.43]
mov rsi, qword [rsp + 0x30]
movzx eax, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret