joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp ebp, 0xffffffff
je 0x140003e6e
mov rax, qword [rdi + 0x40]
cmp qword [rax], 0
je 0x140003cf1
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140003cf1
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], bpl
jmp 0x140003e77
cmp qword [rdi + 0x80], 0
je 0x140003e72
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140003d2b
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x68], 0
je 0x140003e9d
lea rax, [rsp + 0x60]
mov byte [rax - 1], bpl
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
lea r13, [rsp + 0x60]
movdqu xmmword [r13 + 0x10], xmm0
mov byte [r13], 0
mov edx, 8
xor r8d, r8d
mov rcx, r13
call fcn.140004a80
lea r15, [rdi + 0x74]
lea r14, [rsp + 0x50]
lea r12, [rsp + 0x5f]
jmp 0x140003de5
mov rbx, qword [rsp + 0x48]
cmp qword [rsp + 0x78], 0xf
mov rcx, r13
jbe 0x140003d93
mov rcx, qword [rsp + 0x60]
sub rbx, rcx
je 0x140003db5
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8, rbx
call fcn.1400fa0d0
cmp rbx, rax
jne 0x140003e60
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r12
jne 0x140003e5e
test rbx, rbx
jne 0x140003de5
cmp qword [rsp + 0x70], 0x1f
ja 0x140003e60
mov edx, 8
xor r8d, r8d
mov rcx, r13
call fcn.140004a10
mov rcx, qword [rdi + 0x68]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
lea rbx, [rax + rdx]
cmp qword [rsp + 0x78], 0xf
lea rdx, [rsp + rdx + 0x60]
cmova rdx, rbx
cmovbe rax, r13
mov rbx, qword [rcx]
lea rsi, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, r15
mov r8, r12
lea r9, [rsp + 0x60]
call qword [rbx + 0x38]
mov esi, 0xffffffff
cmp eax, 2
jb 0x140003d7e
cmp eax, 3
jne 0x140003e60
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.1400fa170
cmp eax, 0xffffffff
cmove ebp, eax
mov esi, ebp
lea rcx, [rsp + 0x60]
call fcn.140001c80
mov ebp, esi
jmp 0x140003e77
xor ebp, ebp
jmp 0x140003e77
mov ebp, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400edc60
mov eax, ebp
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rdi + 0x80]
movsx ecx, bpl
call fcn.1400fa170
mov edi, eax
cmp edi, 0xffffffff
cmovne edi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400edc60
mov eax, edi
jmp 0x140003e89
Function at 0x1400047c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov bl, 1
cmp qword [rsi + 0x68], 0
je 0x1400048f3
cmp byte [rsi + 0x71], 0
je 0x1400048f3
mov rax, qword [rsi]
mov edx, 0xffffffff
mov rcx, rsi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400048f1
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
lea r15, [rsp + 0x30]
movdqu xmmword [r15 + 0x10], xmm0
mov byte [r15], 0
mov edx, 8
xor r8d, r8d
mov rcx, r15
call fcn.140004a80
lea r14, [rsi + 0x74]
lea r12, [rsp + 0x28]
jmp 0x140004898
mov byte [rsi + 0x71], 0
mov rdi, qword [rsp + 0x28]
cmp qword [rsp + 0x48], 0xf
mov rcx, r15
jbe 0x14000485f
mov rcx, qword [rsp + 0x30]
sub rdi, rcx
je 0x14000487d
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8, rdi
call fcn.1400fa0d0
cmp rdi, rax
jne 0x1400048e3
cmp byte [rsi + 0x71], 0
je 0x1400048e5
test rdi, rdi
jne 0x140004898
mov edx, 8
xor r8d, r8d
mov rcx, r15
call fcn.140004a10
mov rcx, qword [rsi + 0x68]
mov r8, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea rdx, [r8 + rax]
cmp qword [rsp + 0x48], 0xf
lea r9, [rsp + rax + 0x30]
cmova r9, rdx
cmovbe r8, r15
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rax + 0x40]
mov bl, 1
test eax, eax
je 0x140004846
cmp eax, 1
je 0x14000484a
cmp eax, 3
je 0x1400048e5
xor ebx, ebx
lea rcx, [rsp + 0x30]
call fcn.140001c80
jmp 0x1400048f3
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400edc60
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140005c50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm13
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmmword [rsp + 0x50], xmm11
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
lea r8, [rdx - 0x40]
lea r11, [rcx + 0x40]
mov eax, 0x40
cmp r8, rax
jb 0x140005d9d
add rdx, 0xffffffffffffff80
mov r9, rdx
and r9, 0xffffffffffffffc0
mov r10, r9
sub r10, 0xffffffffffffff80
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140154b40]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm9, 0
movdqa xmm12, xmm3
pclmulqdq xmm12, xmm9, 0
movdqa xmm11, xmm2
pclmulqdq xmm11, xmm9, 0
movdqa xmm10, xmm1
pclmulqdq xmm10, xmm9, 0
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm8, 0x11
movdqa xmm5, xmm3
pclmulqdq xmm5, xmm8, 0x11
movdqa xmm7, xmm2
pclmulqdq xmm7, xmm8, 0x11
movdqa xmm13, xmm1
pclmulqdq xmm13, xmm8, 0x11
movdqu xmm0, xmmword [r11]
pxor xmm0, xmm6
pxor xmm0, xmm4
movdqu xmm3, xmmword [r11 + 0x10]
pxor xmm3, xmm12
pxor xmm3, xmm5
movdqu xmm2, xmmword [r11 + 0x20]
pxor xmm2, xmm11
pxor xmm2, xmm7
movdqu xmm1, xmmword [r11 + 0x30]
pxor xmm1, xmm10
pxor xmm1, xmm13
add r8, 0xffffffffffffffc0
add r11, 0x40
cmp r8, 0x3f
ja 0x140005ce8
sub rdx, r9
add rcx, r10
mov r8, rdx
mov r11, rcx
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140154b50]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp r8, 0x10
jb 0x140005e2d
movdqu xmm1, xmmword [r11]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm1
pxor xmm0, xmm2
add r11, 0x10
add r8, 0xfffffffffffffff0
cmp r8, 0xf
ja 0x140005e02
movdqa xmm1, xmmword [0x140154b50]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pmovzxdq xmm1, xmm0
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm2, rax
pclmulqdq xmm2, xmm1, 0
pxor xmm2, xmm0
pmovzxdq xmm0, xmm2
pclmulqdq xmm0, xmmword [0x140154b60], 0x10
pmovzxdq xmm0, xmm0
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x14000dcb0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
movdqa xmmword [rsp + 0x50], xmm6
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x1401930e8], 0
je 0x14000dcdd
xor esi, esi
jmp 0x14000de18
mov ecx, 0x58
call fcn.1400edc90
mov rsi, rax
mov ecx, 0x20
call fcn.1400edc90
mov qword [rsi], rax
lea rcx, [rax + 0x20]
mov qword [rsi + 0x10], rcx
mov edx, 7
movq xmm6, rdx
pslldq xmm6, 8
movdqu xmmword [rax + 0x10], xmm6
mov qword [rsi + 8], rcx
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov word [rax], 0
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x38], 0
mov ecx, 0x60
call fcn.1400edc90
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x40], 1
mov dword [rsi + 0x48], 0
mov qword [rsi + 0x50], 0
mov qword [0x1401930e8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
movdqu xmmword [rsp + 0x38], xmm6
mov word [rsp + 0x28], 0
mov rcx, rdi
call fcn.1400f4120
mov rbx, rax
cmp rbx, 7
jbe 0x14000dda5
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r9, rdi
call fcn.140001920
jmp 0x14000ddc4
mov qword [rsp + 0x38], rbx
mov r8, rbx
add r8, r8
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400f0ce0
mov word [rsp + rbx*2 + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14000de40
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000de15
add rax, 1
js 0x14000de34
mov rcx, qword [rsp + 0x28]
add rax, rax
cmp rax, 0x1000
jb 0x14000de10
test cl, 0x1f
jne 0x14000de34
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000de34
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14000de34
call fcn.1400edcd0
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400edc60
mov eax, esi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f4650
ud2

Function at 0x14000de40
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rcx, qword [0x140191d78]
xor rcx, rsp
mov qword [rsp + 0x50], rcx
mov ecx, 7
movq xmm0, rcx
pslldq xmm0, 8
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], 0
lea rdi, [rsp + 0x30]
mov edx, 3
mov rcx, rax
mov r8, rdi
call fcn.14001d150
cmp qword [rsp + 0x40], 0
je 0x14000ded2
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0x48], 7
jbe 0x14000dea9
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov edx, dword [rsp + 0x2c]
mov rcx, rsi
mov r8, rdi
call fcn.14000d580
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x14000df16
add rax, 1
js 0x14000df2b
mov rcx, qword [rsp + 0x30]
add rax, rax
cmp rax, 0x1000
jb 0x14000df11
test cl, 0x1f
jne 0x14000df2b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000df2b
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14000df2b
call fcn.1400edcd0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400edc60
nop
add rsp, 0x58
pop rdi
pop rsi
ret
call fcn.1400f4650
ud2
Function at 0x140019e50
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140193170]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140019fb9
jp 0x140019fb9
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140193180]
mov ecx, dword [0x140195c08]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 8]
jg 0x140019fd8
mov eax, dword [0x140193190]
mov ecx, dword [0x140195c08]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 8]
jg 0x14001a014
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x140193188]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x140155a60]
subpd xmm1, xmmword [0x140155a70]
pshufd xmm0, xmm1, 0x4e
addpd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140155a88]
ucomisd xmm1, xmm0
ja 0x140019fb9
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140193178]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140155a60]
subpd xmm1, xmmword [0x140155a70]
pshufd xmm6, xmm1, 0x4e
addpd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x140193170], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400edc60
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140193180]
call fcn.1400ee1f0
mov eax, dword [0x140193180]
cmp eax, 0xffffffff
jne 0x140019ed1
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140193178], rdx
lea rcx, [0x140193180]
call fcn.1400ee190
jmp 0x140019ed1
lea rcx, [0x140193190]
call fcn.1400ee1f0
mov eax, dword [0x140193190]
cmp eax, 0xffffffff
jne 0x140019ef6
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140193188], rax
lea rcx, [0x140193190]
call fcn.1400ee190
jmp 0x140019ef6
Function at 0x14001af30
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r13, r8
mov r14, rdx
mov r15, rcx
movzx eax, byte [r13]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx edx, byte [r13 + 1]
xor rdx, rcx
imul rdx, rax
movzx ecx, byte [r13 + 2]
xor rcx, rdx
imul rcx, rax
movzx edx, byte [r13 + 3]
xor rdx, rcx
imul rdx, rax
and rdx, qword [r15 + 0x30]
mov rax, qword [r15 + 8]
mov r8, qword [r15 + 0x18]
lea rdi, [rdx + rdx]
add rdi, 1
shl rdx, 4
mov rcx, qword [r8 + rdx]
mov ebx, dword [r13]
mov rdx, rcx
jmp 0x14001afc3
mov rdx, qword [rdx]
mov rsi, rcx
cmp rcx, rax
je 0x14001afd2
mov rsi, qword [r8 + rdi*8]
mov rsi, qword [rsi]
cmp rsi, rdx
je 0x14001afeb
cmp dword [rdx + 0x10], ebx
jne 0x14001afc0
cmp rdx, rax
je 0x14001afeb
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x14001b060
mov rdi, qword [rax]
mov r12, qword [rdi + 8]
mov ecx, 0x38
call fcn.1400edc90
mov rsi, rax
test rdi, rdi
mov rax, r12
cmove rax, rsi
mov rcx, rdi
cmove rcx, rsi
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov eax, dword [r13]
mov dword [rsi + 0x10], eax
lea rcx, [rsi + 0x18]
call fcn.140012850
mov rax, qword [r15 + 0x10]
movabs rcx, 0x492492492492491
cmp rax, rcx
je 0x14001b073
add rax, 1
mov qword [r15 + 0x10], rax
mov qword [rdi + 8], rsi
mov qword [r12], rsi
mov rax, qword [r15 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r15
mov rdx, r14
call fcn.14001b090
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.list_T__too_long
call fcn.1400ef190
ud2
Function at 0x14001b590
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x14001b60b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14001b60b
cmp dword [rsp + 0x38], 4
jne 0x14001b60b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400edc60
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14001b630
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1050
call fcn.1400edd10
sub rsp, rax
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x1048], rax
mov rsi, r8
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x840]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x14001b770
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14001b6d1
mov edi, 0x3f4
cmp eax, 1
jne 0x14001b770
lea rcx, [rsp + 0x840]
call fcn.1400f4120
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14001b725
lea r9, [rsp + 0x840]
jmp 0x14001b718
lea rcx, [rsp + 0x840]
lea rdx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x14001b770
lea rcx, [rsp + 0x40]
call fcn.1400f4120
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14001b745
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140001920
jmp 0x14001b76e
mov rbx, rsi
cmp rax, 8
jb 0x14001b731
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, r8
lea rdx, [rsp + 0x840]
jmp 0x14001b760
mov rbx, rsi
cmp rax, 8
jb 0x14001b751
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, r8
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400f0ce0
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1048]
xor rcx, rsp
call fcn.1400edc60
mov eax, edi
add rsp, 0x1050
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001b790
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, rsi
call fcn.1400f4120
lea eax, [rax + rax]
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov r9d, 1
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001f080
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rdi + 8], 0
je 0x14001f0af
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14001f0b2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14001f0d3
test bl, bl
je 0x14001f11c
cmp byte [rdi + 8], 0
je 0x14001f10e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14001f111
cmp byte [rdi + 8], 0
je 0x14001f0e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14001f0e7
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001f0fd
xor edi, edi
jmp 0x14001f198
cmp byte [rdi + 8], 0
je 0x14001f150
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14001f153
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14001f12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14001f130
mov rcx, qword [rdi]
call sub.KERNEL32.dll_GetProcessId
mov rcx, qword [0x140193280]
mov dil, 1
test rcx, rcx
je 0x14001f198
mov edx, eax
mov r8d, esi
call fcn.140035b30
jmp 0x14001f198
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14001f166
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x14001f177
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14001f17a
mov rcx, qword [rdi]
call sub.KERNEL32.dll_GetProcessId
mov rcx, qword [0x140193280]
test rcx, rcx
je 0x14001f195
mov edx, eax
mov r8d, esi
call fcn.140035b30
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400edc60
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140021bf0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x60], rax
test esi, esi
js 0x140021c86
lea rcx, [rsp + 0x50]
call fcn.14004fec0
call fcn.140044e60
test al, al
je 0x140021c42
movsxd r9, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x50]
mov r8, rbx
call fcn.140044f00
mov rax, rdi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], edi
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021c8d
mov esi, dword [rsp + 0x2c]
jmp 0x140021c9e
mov esi, 0xffffffff
jmp 0x140021ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x50]
call fcn.140044ed0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400edc60
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140021cd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x48], rax
test esi, esi
js 0x140021d44
lea rcx, [rsp + 0x38]
call fcn.14004fec0
call fcn.140044e60
test al, al
je 0x140021d1d
movsxd r9, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.140044f00
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021d4b
mov esi, dword [rsp + 0x34]
jmp 0x140021d5c
mov esi, 0xffffffff
jmp 0x140021d66
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x38]
call fcn.140044ed0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400edc60
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140021d80
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.14004fec0
call fcn.140044e60
test al, al
je 0x140021dce
movsxd r9, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x50]
mov r8, rbx
call fcn.140044f00
mov rax, rdi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], edi
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x50]
call fcn.140044ed0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400edc60
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140021e40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140191d78]
xor rax, rsp
mov qword [rsp + 0x48], rax
test esi, esi
js 0x140021ebf
lea rcx, [rsp + 0x38]
call fcn.14004fec0
call fcn.140044e60
test al, al
je 0x140021e8d
movsxd r9, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.140044f00
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
call fcn.140044ed0
jmp 0x140021ec4
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400edc60
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret