joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002620
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x190
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x140009020]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
lea rdx, str.WorkerThread
lea rcx, vtable.CLog.0
call fcn.140002d10
mov r11, qword [rdi + 0x978]
mov rax, qword [rdi + 0x980]
lea rcx, [rdi + 0x90]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], rax
call fcn.140001cc0
movss xmm7, dword [0x140006788]
movss xmm6, dword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea rcx, [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x30]
test r11, r11
je 0x1400026fc
mov rcx, qword [rsp + 0x40]
pxor xmm6, xmm6
pxor xmm0, xmm0
sub rcx, qword [rsp + 0x38]
cvtsi2ss xmm0, r11
cvtsi2ss xmm6, rcx
mulss xmm6, xmm7
divss xmm6, xmm0
comiss xmm6, xmm7
jb 0x14000274f
movaps xmm0, xmm6
lea r9, str.Idle
lea r8, str.__16s_:__.1fs
lea rcx, [rsp + 0x60]
mov edx, 0x100
divss xmm0, xmm7
unpcklps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCR90.dll_sprintf_s]
cmp dword [0x140009334], 0
je 0x14000274f
lea rdx, [rsp + 0x60]
lea rcx, vtable.CLog.0
xor r8d, r8d
call fcn.1400028c0
test ebx, ebx
je 0x140002787
cmp ebx, 1
jne 0x140002695
mov rcx, qword [rdi + 0x980]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 0x90]
call fcn.140001f10
mov rcx, qword [rdi + 0x988]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140002695
lea r9, str.Kill
lea r8, str.__16s_:_worker_thread_terminated
lea rcx, [rsp + 0x60]
mov edx, 0x100
call qword [sym.imp.MSVCR90.dll_sprintf_s]
cmp dword [0x140009334], 0
je 0x1400027c2
lea rdx, [rsp + 0x60]
lea rcx, vtable.CLog.0
xor r8d, r8d
call fcn.1400028c0
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400032b0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400038c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140009020]
jne 0x1400032ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400032c6
repz ret
ror rcx, 0x10
jmp 0x14000381c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140009450]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140009548]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400038a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140009450]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400038c3
mov rax, qword [rsp + 0x88]
mov qword [0x140009548], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400094e8], rax
mov rax, qword [0x140009548]
mov qword [0x1400093c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400094d0], rax
mov dword [0x1400093b0], 0xc0000409
mov dword [0x1400093b4], 1
mov rax, qword [0x140009020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140009028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140009448], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400058e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140009448], 0
jne 0x14000394a
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
invalid
invalid
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401f7aab
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get hostname
Terminate process

Disassembly:
movzx eax, byte [rsp + rcx + 0x50]
add edx, 6
mov byte [rcx + r10], al
movzx eax, byte [rsp + rcx + 0x51]
mov byte [rcx + r10 + 1], al
movzx eax, byte [rsp + rcx + 0x52]
push rdx
push rdx
mov byte [rcx + r10 + 2], al
movzx eax, byte [rsp + rcx + 0x53]
mov byte [rcx + r10 + 3], al
movzx eax, byte [rsp + rcx + 0x54]
mov byte [rcx + r10 + 4], al
movzx eax, byte [rsp + rcx + 0x55]
mov byte [rcx + r10 + 5], al
lea rcx, [rcx + 6]
cmp edx, 6
jb 0x1401f7a91
mov ecx, r15d
movaps xmmword [0x140407d70], xmm0
mov byte [0x140407d80], r8b
nop dword [rax]
inc ecx
cmp ecx, 0x11
jb 0x1401f7af0
movsxd rdx, ecx
cmp rdx, 0x11
jae 0x1401f7b1b
movzx eax, byte [rbp + rdx + 0xfe0]
inc ecx
mov byte [rdx + r10 + 0x10910], al
lea rdx, [rdx + 1]
cmp ecx, 0x11
jb 0x1401f7b00
mov ecx, r15d
mov byte [0x140407d91], r9b
movups xmmword [0x140407d81], xmm1
nop dword [rax]
inc ecx
cmp ecx, 0x11
jb 0x1401f7b30
movsxd rdx, ecx
cmp rdx, 0x11
jae 0x1401f7b5b
movzx eax, byte [rbp + rdx + 0xff8]
inc ecx
mov byte [rdx + r10 + 0x10921], al
lea rdx, [rdx + 1]
cmp ecx, 0x11
jb 0x1401f7b40
mov ebx, r15d
lea rdi, [rsp + 0x58]
lea r14, [0x1403f7560]
nop word [rax + rax]
mov r8, qword [rdi]
mov edx, 0x104
movsxd rax, ebx
imul rcx, rax, 0x104
add rcx, r14
call fcn.140211db0
inc ebx
lea rdi, [rdi + 8]
cmp ebx, 5
jb 0x1401f7b70
mov rdi, 0xffffffffffffffff
lea rdx, [0x1403f7664]
mov rax, rdi
inc rax
cmp byte [rdx + rax], r15b
jne 0x1401f7ba6
shr rax, 1
lea r9, [rbp + 0x1080]
mov dword [rsp + 0x20], eax
call fcn.1401f8960
lea rdx, [0x1403f7970]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rdx + rax], r15b
jne 0x1401f7bd0
shr rax, 1
lea r9, [rbp + 0x1010]
mov dword [rsp + 0x20], eax
call fcn.1401f8960
call fcn.1401f3330
call fcn.1401f3a10
call fcn.1401f3330
lea r8, [0x1402597cc]
lea rdx, [rbp + 0x1010]
lea rcx, [rsp + 0x50]
call fcn.140211ecc
test eax, eax
jne 0x1401f7c43
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401f7c43
call fcn.140211d18
call fcn.1401f3a10
call fcn.1401f3330
lea rcx, [0x140259574]
call fcn.1401f78a0
xor eax, eax
jmp 0x1401f7ff3
lea r8, [0x1402597cc]
lea rdx, str.error.log
lea rcx, [rsp + 0x50]
call fcn.140211ecc
test eax, eax
jne 0x1401f7c6e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401f7c6e
call fcn.140211d18
call fcn.1401f3a10
xor edx, edx
mov dword [rsp + 0x50], 0x104
mov r8d, 0x208
lea rcx, [rbp + 0x1080]
call fcn.1402098d0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1080]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea r8, [rbp + 0x1080]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1401f7c3c
mov qword [rsp + 0x1430], rsi
call fcn.1401f3330
lea rdx, [0x1403f7768]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], r15b
jne 0x1401f7ce0
shr rax, 1
lea r9, [rbp + 0xff8]
mov dword [rsp + 0x20], eax
call fcn.1401f8960
lea rdx, [0x1403f786c]
mov rax, rdi
inc rax
cmp byte [rdx + rax], r15b
jne 0x1401f7d06
shr rax, 1
lea r9, [rbp + 0xfe0]
mov dword [rsp + 0x20], eax
call fcn.1401f8960
Function at 0x1401f8160
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x10d0]
mov eax, 0x11d0
call fcn.1401fc4e0
sub rsp, rax
mov rax, qword [0x140374020]
xor rax, rsp
mov qword [rbp + 0x10c0], rax
mov rbx, r8
mov rdi, rdx
xor ecx, ecx
call fcn.140211f24
mov rcx, rax
call fcn.1402119ec
call fcn.1401f3a10
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1401f7900
xor r9d, r9d
lea rdx, [rbp + 0x54]
call fcn.1401f8060
xor r9d, r9d
lea rdx, [rbp + 0x5d]
call fcn.1401f8060
lea rax, [rbp + 0x5d]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str._s_s_s
mov edx, 0x104
lea rcx, [rbp + 0x66]
call fcn.1401f7900
call fcn.1401f3330
lea rax, [rbp + 0x5d]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str._s_s_s
mov edx, 0x104
lea rcx, [rbp + 0x16a]
call fcn.1401f7900
call fcn.1401f3a10
lea rax, [rbp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str._s_s_
mov edx, 0x104
lea rcx, [rbp + 0x26e]
call fcn.1401f7900
call fcn.1401f3330
lea rax, [rbp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str._s_s_
mov edx, 0x104
lea rcx, [rbp + 0x372]
call fcn.1401f7900
call fcn.1401f3a10
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 4
mov dword [rsp + 0x30], 0x6578652e
mov byte [rsp + 0x34], 0
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rbp + 0x66]
call fcn.140211f98
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1401f8308
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f8303
add rdx, 0x27
mov rcx, qword [rcx - 8]
Function at 0x1401f8327
Capabilities:
Set current directory

Disassembly:
clc
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f850f
call fcn.1401fbb30
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 4
mov dword [rsp + 0x30], 0x7461642e
je 0x1401f82f1
and al, 0x34
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x30
je 0x1401f82f1
and al, 0x34
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x30
mov edx, 0x104
lea rcx, [rbp + 0x16a]
call fcn.140211f98
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1401f8383
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f837e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f8515
call fcn.1401fbb30
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 8
movabs rax, 0x6c6d782e65676465
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 0
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rbp + 0x26e]
call fcn.140211f98
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1401f8405
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f8400
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f851b
call fcn.1401fbb30
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 8
movabs rax, 0x67706a2e65676465
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 0
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rbp + 0x372]
call fcn.140211f98
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1401f8487
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f8482
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f8509
call fcn.1401fbb30
lea rax, [rbp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, str._s_s_
mov edx, 0x104
lea rcx, [rbp + 0xfb0]
call fcn.1401f7900
lea rcx, [rbp + 0xfb0]
call fcn.14021221c
test eax, eax
lea rcx, [rsp + 0x50]
jne 0x1401f84c9
lea rcx, [rbp + 0xfb0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov r8d, 0x1052
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140209210
mov rax, rdi
mov rcx, qword [rbp + 0x10c0]
xor rcx, rsp
call fcn.1401fbb10
lea r11, [rsp + 0x11d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140211634
int3
call fcn.140211634
int3
call fcn.140211634
int3
call fcn.140211634
int3
Function at 0x1401f8530
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140374020]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
xor esi, esi
call fcn.1401f3a10
call fcn.1401f3330
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f859a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1401f859e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1401f85ef
call fcn.1401f3a10
call fcn.1401f3330
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1401f85d6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1401f85b0
jmp 0x1401f85da
mov esi, dword [rsp + 0x28]
call fcn.1401f3a10
call fcn.1401f3330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401fbb10
adc dword [0xcd6b8601], esi
pushfq
and al, 0x60
add dword [rax], eax
add byte [rcx - 0x75], cl
pop rbx
adc byte [rcx - 0x75], cl
jae 0x1401f862f
Function at 0x1401f8620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140374020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov rbx, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1401f87b4
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140209210
xor eax, eax
test rdi, rdi
je 0x1401f8719
cmp rdi, 8
jb 0x1401f871e
movdqa xmm2, xmmword [0x14036c8d0]
cmp rdi, 0x40
jb 0x1401f86f7
mov rdx, rdi
lea rcx, [rsi + 0x20]
and edx, 0x3f
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx - 0x20]
add rax, 0x40
lea rcx, [rcx + 0x40]
andnps xmm0, xmm2
movdqu xmmword [rcx - 0x60], xmm0
movdqu xmm0, xmmword [rcx - 0x50]
andnps xmm0, xmm2
movdqu xmmword [rcx - 0x50], xmm0
movdqu xmm1, xmmword [rcx - 0x40]
andnps xmm1, xmm2
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmm0, xmmword [rcx - 0x30]
andnps xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
cmp rax, r8
jb 0x1401f86b0
cmp rdx, 8
jb 0x1401f8719
mov rcx, rdi
mov rdx, rdi
and ecx, 7
sub rdx, rcx
movq xmm0, qword [rax + rsi]
andnps xmm0, xmm2
movq qword [rax + rsi], xmm0
add rax, 8
cmp rax, rdx
jb 0x1401f8703
cmp rax, rdi
jae 0x1401f873c
mov r8, rdi
lea rdx, [rax + rsi]
sub r8, rax
nop dword [rax + rax]
not byte [rdx]
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1401f8730
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401fbb10
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f87d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, r8
mov rbp, rdx
mov rdx, rax
lea r8, str.resource
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x1401f8898
call fcn.1401f3a10
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
call fcn.1401f3330
test rbx, rbx
je 0x1401f8898
mov qword [rsp + 0x30], rdi
call fcn.1401f3330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1401f8870
call fcn.1401f3a10
mov r9d, dword [rsp + 0x50]
mov r8, rdi
add r9d, 0xfffffc00
mov rdx, rbp
add r9d, esi
call fcn.1401f8620
test eax, eax
je 0x1401f8870
call fcn.1401f3330
call fcn.1401f3a10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rdi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x1401f8960
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140374020]
xor rax, rsp
mov qword [rsp + 0x90], rax
movsxd r15, dword [rsp + 0xf0]
xor esi, esi
mov ebp, esi
mov r14d, esi
mov rdi, r9
mov rbx, rdx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], sil
jne 0x1401f89a1
test rax, rax
je 0x1401f89ee
mov rcx, rsi
movsxd rax, r14d
lea r8, [rsp + 0x20]
add r8, rax
lea rdx, str._2hhx
add rcx, rbx
call fcn.1401f7960
add ebp, 2
mov rax, 0xffffffffffffffff
inc r14d
movsxd rcx, ebp
nop dword [rax]
inc rax
cmp byte [rbx + rax], sil
jne 0x1401f89e0
cmp rcx, rax
jb 0x1401f89b2
lea rbp, [0x1402593c8]
test r15d, r15d
jle 0x1401f8b1f
cmp r15d, 8
jb 0x1401f8b1f
lea rcx, [r15 - 1]
lea rax, [rsp + 0x20]
add rax, rcx
lea rdx, [rcx + rdi]
cmp rdi, rax
ja 0x1401f8a2b
lea rax, [rsp + 0x20]
cmp rdx, rax
jae 0x1401f8b1f
lea rax, [rcx + rbp]
cmp rdi, rax
ja 0x1401f8a3d
cmp rdx, rbp
jae 0x1401f8b1f
cmp r15d, 0x40
jb 0x1401f8aef
mov eax, r15d
and eax, 0xffffffc0
mov rdx, rbp
movsxd rbx, eax
lea r8, [rsp + 0x20]
sub rdx, rdi
lea r9, [0x1402593d8]
sub r8, rdi
lea r10, [rsp + 0x30]
sub r9, rdi
sub r10, rdi
lea rcx, [rdi + 0x20]
mov r11, 0xffffffffffffffe0
sub r11, rdi
nop
movdqu xmm0, xmmword [rdx + rcx - 0x20]
add esi, 0x40
movdqu xmm1, xmmword [r8 + rcx - 0x20]
movdqu xmm2, xmmword [r10 + rcx - 0x20]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
lea rax, [r11 + rcx]
movdqu xmm0, xmmword [r9 + rcx - 0x60]
movdqu xmmword [rcx - 0x60], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmm1, xmmword [r8 + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [r9 + rcx - 0x40]
movdqu xmm2, xmmword [r10 + rcx - 0x40]
movdqu xmmword [rcx - 0x40], xmm1
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x30], xmm2
cmp rax, rbx
jl 0x1401f8a80
mov eax, r15d
and al, 0x3f
cmp al, 8
jb 0x1401f8b1f
mov eax, r15d
and eax, 0xfffffff8
movsxd rcx, esi
movsxd rdx, eax
nop dword [rax + rax]
movq xmm1, qword [rcx + rbp]
add esi, 8
movq xmm0, qword [rsp + rcx + 0x20]
xorps xmm1, xmm0
movq qword [rcx + rdi], xmm1
add rcx, 8
cmp rcx, rdx
jl 0x1401f8b00
movsxd rcx, esi
cmp rcx, r15
jge 0x1401f8b43
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
xor al, byte [rsp + rcx + 0x20]
mov byte [rcx + rdi], al
inc rcx
cmp rcx, r15
jl 0x1401f8b30
mov byte [r15 + rdi], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401fbb10
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401f8b70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x298
mov rax, qword [0x140374020]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r9d, r9d
lea rdx, [rsp + 0x60]
xor cl, cl
lea r10, str.__t_e_m_p______a_p_p_d_a_t_a_____
xor eax, eax
nop dword [rax]
Function at 0x1401faa4c
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1401faa7a
xor eax, eax
jmp 0x1401fab60
cmp qword [rcx + 0x68], 0
je 0x1401faa8b
call fcn.1401fab7c
jmp 0x1401fab60
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1401faaa2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1401faaa4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1401faad6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140209210
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1401fab5a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1401fab0d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1401fab36
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140218398
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1401fab5a
cmp rsi, rbx
ja 0x1401fab14
test rsi, rsi
je 0x1401fab5a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140218398
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1401fc888
Capabilities:
Parse pe header

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

Function at 0x1401fff00
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1401fff30
lea rdx, [0x14024cea0]
mov ecx, 0x10008
call fcn.1402047d0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret