joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c8
call fcn.140002a50
sub rsp, rax
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x24], eax
inc rcx
cmp rcx, 0x270
jb 0x140001220
mov dword [rsp + 0x20], 0x270
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140001a60
mov r8d, eax
mov eax, 0x5e1d27b
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 9
cmp ecx, 0x417874
jae 0x140001250
mov eax, 0x5e1d27b
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3e9
sub r8d, eax
lea edx, [r8 - 0x7fec6e00]
mov r8d, 0x80000000
cmp edx, r8d
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + r8]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140001c00
add rsp, 0x13c8
ret

Function at 0x1400013a0
Capabilities:
Create process on windows
Set file attributes
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x48]
call fcn.1400015e0
nop
call fcn.1400011d0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, 0xa
nop dword [rax]
call fcn.1400012d0
movzx edx, al
lea rcx, [rsp + 0x48]
call fcn.1400014d0
sub rbx, 1
jne 0x1400013e0
lea rcx, [rsp + 0x48]
call fcn.140001520
call fcn.1400011e0
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.1400014c0
mov rcx, rax
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, edi
lea rdx, [0x140005050]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call fcn.1400014c0
mov rcx, rax
lea edx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x48]
call fcn.1400014c0
mov r8, rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001a60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140001ac1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140001a80
mov ecx, dword [r10]
jmp 0x140001baa
cmp ecx, 0x4e0
jb 0x140001baa
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140001ae0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140001b30
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
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, 8
ret
Function at 0x140001940
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000199f
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x1400019b3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400047e0
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
lea r9d, [rax + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400047e0
add rsp, 0x68
ret

Function at 0x140002fb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1d450]
mov eax, 0x1d550
call fcn.140010d20
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x1d440], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0xfa0
mov dword [rsp + 0x70], 0xfa0
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x1d4c0
call fcn.140006170
mov eax, ebx
lea r8, [rbp - 0x80]
nop
mov edx, eax
movsx ecx, al
shr edx, 6
lea r8, [r8 + 1]
xor dl, al
inc eax
movsx edx, dl
imul edx, ecx
mov byte [r8 - 1], dl
cmp eax, 0x1d4c0
jb 0x140003040
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], GetModuleHandleW
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x1d440]
xor rcx, rsp
call fcn.1400047e0
mov rbx, qword [rsp + 0x1d560]
add rsp, 0x1d550
pop rbp
ret
Function at 0x1400033c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x508a0]
mov eax, 0x509a0
call fcn.140010d20
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x50890], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x2af8
mov dword [rsp + 0x70], 0x2af8
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x50910
call fcn.140006170
mov eax, ebx
lea r9, [rbp - 0x80]
nop
mov r8d, eax
lea r9, [r9 + 1]
mov ecx, eax
shr r8d, 9
shr ecx, 7
xor r8b, al
movsx edx, cl
inc eax
movsx ecx, r8b
imul ecx, edx
mov byte [r9 - 1], cl
cmp eax, 0x50910
jb 0x140003450
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x50910
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x50890]
xor rcx, rsp
call fcn.1400047e0
mov rbx, qword [rsp + 0x509b0]
add rsp, 0x509a0
pop rbp
ret
Function at 0x140003660
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xa11b0]
mov eax, 0xa12b0
call fcn.140010d20
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0xa11a0], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x55f0
mov dword [rsp + 0x70], 0x55f0
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xa1220
call fcn.140006170
mov eax, ebx
lea r9, [rbp - 0x80]
nop
movsx ecx, al
lea r9, [r9 + 1]
movsx edx, al
mov r8d, eax
shr r8d, 6
and r8b, al
imul edx, ecx
inc eax
xor r8b, dl
mov byte [r9 - 1], r8b
cmp eax, 0xa1220
jb 0x1400036f0
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0xa1220
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0xa11a0]
xor rcx, rsp
call fcn.1400047e0
mov rbx, qword [rsp + 0xa12c0]
add rsp, 0xa12b0
pop rbp
ret
Function at 0x1400037b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x508a0]
mov eax, 0x509a0
call fcn.140010d20
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x50890], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x2af8
mov dword [rsp + 0x70], 0x2af8
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x50910
call fcn.140006170
mov eax, ebx
lea r9, [rbp - 0x80]
nop
mov r8d, eax
movsx edx, al
imul r8d, eax
lea r9, [r9 + 1]
mov ecx, eax
shr ecx, 4
shr r8d, 5
and r8b, cl
movsx ecx, al
imul edx, ecx
inc eax
xor r8b, dl
mov byte [r9 - 1], r8b
cmp eax, 0x50910
jb 0x140003840
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x50910
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x50890]
xor rcx, rsp
call fcn.1400047e0
mov rbx, qword [rsp + 0x509b0]
add rsp, 0x509a0
pop rbp
ret
Function at 0x140003ba0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x3a910]
mov eax, 0x3aa10
call fcn.140010d20
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x3a900], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x1f40
mov dword [rsp + 0x70], 0x1f40
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x3a980
call fcn.140006170
mov eax, ebx
lea r8, [rbp - 0x80]
nop
mov ecx, eax
lea r8, [r8 + 1]
shr ecx, 6
mov edx, eax
xor ecx, eax
inc eax
shr edx, cl
mov byte [r8 - 1], dl
cmp eax, 0x3a980
jb 0x140003c30
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0x3a980
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0x3a900]
xor rcx, rsp
call fcn.1400047e0
mov rbx, qword [rsp + 0x3aa20]
add rsp, 0x3aa10
pop rbp
ret
Function at 0x140007a24
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400077f8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400077f8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400077f8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400077f8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400077f8
cmp dword [rcx + 0x84], 0xe
jbe 0x1400077f8
cmp dword [rcx + 0xf8], esi
je 0x1400077f8
mov ecx, r14d
call fcn.140007940
mov ecx, 2
call fcn.14000b730
nop
cmp byte [0x14001f2a8], 0
jne 0x1400078c2
mov r15d, 1
mov eax, r15d
xchg dword [0x14001f29c], eax
test ebx, ebx
jne 0x14000786b
mov rdi, qword [0x14001e008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14001f2a0]
cmp rcx, rax
je 0x140007862
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400058b0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14001f2b8]
jmp 0x140007877
cmp ebx, r15d
jne 0x14000787d
lea rcx, [0x14001f2d0]
call fcn.140007f34
nop
test ebx, ebx
jne 0x140007894
lea rdx, [0x1400134f8]
lea rcx, [0x1400134d8]
call fcn.1400076b8
lea rdx, [0x140013508]
lea rcx, [0x140013500]
call fcn.1400076b8
movzx eax, byte [0x14001f2a8]
test esi, esi
cmove eax, r15d
mov byte [0x14001f2a8], al
jmp 0x1400078c2
mov ecx, 2
call fcn.14000b784
test esi, esi
jne 0x1400078d9
mov ecx, r14d
call fcn.1400078f4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140007788
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or edi, edi
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
invalid
invalid
invalid
or dword [rcx], ecx
or edi, edi
invalid
in eax, dx
push rbp
invalid
in eax, dx
push qword [rdx + 0x19ffacab]
sbb byte [rax], bl
sbb bh, bh
or byte [rax], cl
or bh, bh
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or byte [rax], cl
or bh, bh
adc dword [rcx], edx
adc edi, edi
cwde
xchg edx, eax
xchg ebx, eax
push rdx
invalid
sbb bh, bh
or byte [rax], cl
or bh, bh
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or dword [rcx], ecx
or edi, edi
or byte [rax], cl
or bh, bh
adc dword [rcx], edx
adc edi, edi
cwde
xchg edx, eax
xchg ebx, eax
push rdx
invalid
out 0xe9, eax
out 0xe9, eax
push rbp
invalid
Function at 0x1400a4950
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400a495d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a496d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a4955
lea eax, [rcx + 1]
jmp 0x1400a497b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a498e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a4974
sub eax, 3
jb 0x1400a49ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a49fd
sar eax, 1
movsxd rbp, eax
jb 0x1400a49e4
jmp 0x1400a49bc
add ebx, ebx
jne 0x1400a49ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a49e4
inc ecx
add ebx, ebx
jne 0x1400a49ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a49e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a49dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a49cc
add ecx, 2
jmp 0x1400a49e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a4912
jmp 0x1400a495d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x9e00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a4a49
cmp rsi, rcx
jae 0x1400a4a51
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a4a30
cmp al, 0x8f
ja 0x1400a4a30
cmp byte [rsi - 2], 0xf
je 0x1400a4a36
sub al, 0xe8
cmp al, 1
ja 0x1400a4a1a
cmp rsi, rcx
jae 0x1400a4a51
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a4a20
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a4a51
lodsb al, byte [rsi]
jmp 0x1400a4a30
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa2000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a4aae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x12e170]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400a4a5e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400a4aa8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a4a7e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400a4ae8
cmp al, 0xef
ja 0x1400a4ada
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400a4aba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400a4ac9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400a4b3c
sub rsp, 0xffffffffffffff80
jmp 0x140001260