joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008160
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov ebp, ecx
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x140008339
test rdx, rdx
js 0x140008339
call sub.msvcrt.dll__get_osfhandle
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400081cb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
dec eax
jne 0x1400081cb
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140008339
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400081dd
mov ecx, 9
call fcn.14000dde0
or eax, 0xffffffff
jmp 0x140008357
cmp qword [rsp + 0x60], rbx
jae 0x1400082f2
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140008339
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rdi, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rdi, rdi
je 0x1400081cb
test rax, rax
je 0x1400081cb
mov edx, 0x32
mov rcx, rdi
lea r15, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov qword [rsp + 0x48], rax
xor edx, edx
xor eax, eax
mov r9, r15
mov r8d, 0x105
mov qword [rsp + 0x30], rdx
mov rcx, rdi
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
mov rdx, r12
mov dword [rsp + 0x38], eax
call r14
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x84], eax
je 0x14000829e
mov rcx, qword [rsp + 0x48]
mov r8d, 0x32
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x14000824b
xor r14d, r14d
jmp 0x1400082a1
mov r14, rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test r14, r14
jne 0x1400082b9
mov rcx, rdi
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_free
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, r14
mov edi, eax
call sub.msvcrt.dll_free
test edi, edi
je 0x140008322
mov rax, rbx
sub rax, qword [rsp + 0x60]
cmp qword [rsp + 0x58], rax
jb 0x140008322
xor r9d, r9d
mov qword [rsp + 0x68], rbx
lea r8, [rsp + 0x6c]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc eax
jne 0x14000832c
cmp dword [rsp + 0x68], 0xffffffff
je 0x14000832c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x140008339
mov ecx, 0x1b
jmp 0x1400081d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140008343
mov ecx, 0x16
jmp 0x1400081d0
xor r8d, r8d
mov rdx, r13
mov ecx, ebp
call sub.msvcrt.dll__lseeki64
inc rax
je 0x140008339
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000fc63
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140086108], eax
inc eax
jne 0x14000fc7d
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x14000fdf1
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x14000fe8d
call fcn.14000f9ea
dec eax
jne 0x14000fe86
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x4c]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov eax, 0x27
lea rcx, [rsp + 0x25]
cmp byte [rcx + rax], 0
je 0x14000fe65
inc rax
cmp rax, 0x6b
jne 0x14000fe54
jmp 0x14000fe7b
cmp eax, 0x6a
je 0x14000fe7b
movsxd rdx, eax
inc eax
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000ff2f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
call fcn.14000fe98
mov ecx, dword [0x140086108]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14001003e
call fcn.14000fd45
cmp qword [0x1400ba048], 0
mov rbx, rax
je 0x14001003e
test rax, rax
je 0x14001003e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000fdf1
xor edx, edx
xor ecx, ecx
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], edx
mov qword [rbx + 0x28], rcx
call rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rdi
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov rdx, rsi
mov dword [rsp + 0x28], r8d
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], r8d
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140010004
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140086108]
mov rdx, rbx
mov dword [rbx + 0xc0], eax
xor eax, eax
mov dword [rbx + 0xbc], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000ffff
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x140010bbf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14000ff2f
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.140010697
test byte [rbx + 0x40], 0x30
jne 0x140010bf8
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x140086108]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010c83
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x140010c33
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x140010c28
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov esi, dword [rbx + 8]
mov qword [rbx + 0x30], rcx
jmp 0x140010c6d
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x140010c4b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [rbx + 0x30], rdx
test byte [rbx + 0x44], 4
je 0x140010c83
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rbx + 0x28], rax
mov rcx, rbx
call fcn.140010049
mov ecx, dword [0x140086108]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop

Function at 0x140015000
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rcx, str.USERNAME
call sub.msvcrt.dll_getenv
mov rsi, rax
test rax, rax
je 0x1400150a0
lea rbp, [rbx + 0x10]
mov rcx, rax
mov qword [rbx], rbp
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x28], rax
mov rdi, rax
cmp rax, 0xf
ja 0x140015068
cmp rax, 1
jne 0x1400150d0
movzx edx, byte [rsi]
mov byte [rbx + 0x10], dl
mov qword [rbx + 8], rax
mov byte [rbp + rax], 0
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rbx
call fcn.140074470
mov qword [rbx], rax
mov rbp, rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x10], rax
mov rcx, rbp
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
mov rbp, qword [rbx]
jmp 0x140015050
lea rax, [rbx + 0x10]
mov dword [rbx + 0x10], 0x6e6b6e55
mov qword [rbx], rax
mov rax, rbx
mov dword [rbx + 0x13], 0x6e776f6e
mov qword [rbx + 8], 7
mov byte [rbx + 0x17], 0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rax, rax
je 0x140015050
jmp 0x140015087
Function at 0x1400159a0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rsi
push rbx
sub rsp, 0x78
xor r8d, r8d
mov r9d, 0x18
mov rbx, rcx
mov rsi, rdx
xor edx, edx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x3c], 0x20
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140015a66
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140015a59
xor r9d, r9d
mov rdx, qword [rsi]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140015a4e
lea rsi, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 0
mov r8, rsi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140015a88
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rax, [rbx + 0x10]
mov qword [rbx + 8], 0
mov qword [rbx], rax
mov byte [rbx + 0x10], 0
mov rax, rbx
add rsp, 0x78
pop rbx
pop rsi
ret
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r8d, dword [rsp + 0x3c]
mov rdx, rsi
mov rcx, rbx
call fcn.140014b10
jmp 0x140015a79
Function at 0x1400175b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
mov rbx, rcx
mov ecx, 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [rsp + 0x20], 0x130
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400176a2
lea rbp, [rsp + 0x20]
mov rcx, rax
mov rdx, rbp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140017698
mov r14, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdi, [rsp + 0x4c]
jmp 0x14001766f
mov r8, r15
mov rdx, rdi
mov rcx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140017660
mov r8, r15
sub r8, r13
test r8d, r8d
jne 0x140017660
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 1
call r14
mov r12, rax
test rax, rax
je 0x140017660
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rdx, rbp
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140017698
mov rcx, rdi
mov r15, qword [rbx + 8]
mov r12, qword [rbx]
call sub.msvcrt.dll_strlen
mov r13, rax
cmp rax, r15
jb 0x140017660
test r15, r15
jne 0x140017610
mov r8, rax
neg r8
jmp 0x140017628
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140018040
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x140018087
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x140018076
call fcn.14006f310
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x140018091
mov rdx, rbx
mov rcx, rsi
call fcn.140054050
cmp al, 2
je 0x140018072
jmp 0x140018067
mov rcx, rbx
call fcn.140050ef0
mov al, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140053540
Capabilities:
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rax, [rcx + 0x10]
mov word [rcx + 0x10], 0
mov rbx, rcx
mov rsi, rdx
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov eax, 0x400
mov edx, eax
mov rcx, rbx
call fcn.140075f50
mov rdx, qword [rbx]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
cmp qword [rbx + 8], rdi
jb 0x140053565
test eax, eax
jne 0x14005359b
lea rcx, [rsp + 0x20]
call fcn.1400816b0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x1400535a3
mov rcx, rsi
call fcn.140050ef0
mov rdx, rdi
mov rcx, rbx
call fcn.140075f50
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
Function at 0x140053d40
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rbx, rdx
call fcn.140052230
mov ecx, eax
mov rdx, rax
call fcn.140053c50
mov edi, eax
test al, al
je 0x140053db2
mov rdx, rbx
mov rcx, rsi
call fcn.140054050
cmp al, 2
je 0x140053d80
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140053d97
jmp 0x140053d8d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140053d71
mov rcx, rbx
call fcn.140050ef0
jmp 0x140053dc0
cmp dword [rbx], 0
jne 0x140053dae
lea rcx, [rsp + 0x20]
call fcn.1400816b0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
xor edi, edi
jmp 0x140053dc0
test dl, dl
je 0x140053dae
mov rcx, rbx
call fcn.140050ef0
jmp 0x140053dae
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x140053ea0
Capabilities:
Move file

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rbp
call fcn.140054050
mov rsi, rax
mov r12d, eax
cmp al, 0xff
jne 0x140053ed2
mov rcx, rbx
call fcn.140050ef0
jmp 0x140053edb
cmp dword [rbx], 0
jne 0x140053f86
mov ecx, r12d
call fcn.140053c50
test al, al
je 0x140053f27
mov rdx, rbx
mov rcx, rdi
call fcn.140054050
cmp dword [rbx], 0
jne 0x140053f86
cmp sil, 2
jne 0x140053f12
cmp al, 2
je 0x140053f27
call fcn.14006f310
mov dword [rbx], 0x15
jmp 0x140053f21
cmp al, 2
jne 0x140053f27
call fcn.14006f310
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140053f86
mov rdx, qword [rbp]
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140053f50
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140050ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
jne 0x140053f6c
call rdi
mov dword [rax], 0xd
jmp 0x140053f74
call rdi
mov dword [rax], 5
call fcn.14006f310
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140058730
Capabilities:
Get disk size

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
mov rdi, rdx
mov rsi, r8
mov rbx, r9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400587a0
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140058777
mov qword [rdi], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140058784
mov qword [rsi], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140058791
mov qword [rbx], rax
mov rcx, qword [rsp + 0x90]
call fcn.140050ef0
jmp 0x1400587ba
lea rcx, [rsp + 0x20]
call fcn.1400816b0
mov rax, qword [rsp + 0x90]
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x14005c420
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov rcx, rbx
call fcn.14005c290
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbp, eax
inc eax
jne 0x14005c458
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x14005c431
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14006d260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [rcx]
mov rbx, rdx
mov eax, ecx
not eax
test ax, 0x101
jne 0x14006d280
add dword [rdx + 8], 0xc
mov r9b, byte [rsi]
test r9b, r9b
jns 0x14006d2ab
xor edx, edx
test byte [rsi + 1], 2
je 0x14006d29d
mov eax, dword [rbx + 0x14]
mov r8d, 0x64
cdq
idiv r8d
mov eax, dword [rsi + 4]
sub eax, 0x13
imul eax, eax, 0x64
add eax, edx
mov dword [rbx + 0x14], eax
and cx, 0x402
cmp cx, 0x400
jne 0x14006d356
mov eax, r9d
not eax
test al, 0x18
je 0x14006d33a
test r9d, 4
je 0x14006d33a
mov eax, dword [rbx + 0x14]
lea r11, [0x14008ef60]
xor r10d, r10d
lea ecx, [rax + 0x76c]
call fcn.14005be90
mov ecx, dword [rbx + 0x1c]
mov r8, rax
neg r8
and r8d, 0x1a
add r8, r11
movzx edi, word [r8 + r10*2]
mov rdx, r10
lea r10, [r10 + 1]
cmp edi, ecx
jle 0x14006d2f5
test r9d, 8
jne 0x14006d316
lea r8d, [rdx - 1]
mov dword [rbx + 0x10], r8d
and r9d, 0x10
jne 0x14006d337
movzx eax, al
dec edx
imul rax, rax, 0xd
movsxd rdx, edx
add rax, rdx
movzx eax, word [r11 + rax*2]
sub ecx, eax
inc ecx
mov dword [rbx + 0xc], ecx
or byte [rsi], 0x18
mov edx, dword [rbx + 0x10]
test byte [rsi], 8
jne 0x14006d347
cmp edx, 0xb
ja 0x14006d356
mov ecx, dword [rbx + 0x14]
mov r8d, dword [rbx + 0xc]
call fcn.14005b720
mov dword [rbx + 0x18], eax
mov eax, dword [rsi]
mov dil, byte [rsi]
and ax, 0x404
cmp ax, 0x400
jne 0x14006d3a4
movsxd r9, dword [rbx + 0x10]
test edi, 8
jne 0x14006d377
cmp r9d, 0xb
ja 0x14006d3a4
mov eax, dword [rbx + 0x14]
lea ecx, [rax + 0x76c]
call fcn.14005be90
lea rcx, [0x14008ef60]
mov edx, dword [rbx + 0xc]
movzx eax, al
imul rax, rax, 0xd
add rax, r9
movzx eax, word [rcx + rax*2]
lea eax, [rdx + rax - 1]
mov dword [rbx + 0x1c], eax
test edi, 0x60
je 0x14006d487
test edi, 2
je 0x14006d487
mov ebp, dword [rbx + 0x14]
test edi, 4
jne 0x14006d419
mov r12d, edi
mov r8d, 1
xor edx, edx
mov ecx, ebp
call fcn.14005b720
shr r12b, 5
mov r8d, 7
xor r12d, 1
and r12d, 1
sub eax, r12d
mov edx, eax
mov eax, r8d
sub eax, edx
cdq
idiv r8d
mov al, byte [rsi + 2]
and eax, 0x3f
dec eax
imul eax, eax, 7
lea ecx, [rdx + rax]
mov eax, dword [rbx + 0x18]
sub eax, r12d
add eax, 7
cdq
idiv r8d
add ecx, edx
mov dword [rbx + 0x1c], ecx
mov eax, edi
not eax
test al, 0x18
je 0x14006d487
lea ecx, [rbp + 0x76c]
lea r10, [0x14008ef60]
xor r9d, r9d
call fcn.14005be90
mov ecx, dword [rbx + 0x1c]
mov r8, rax
neg r8
and r8d, 0x1a
add r8, r10
movzx r11d, word [r8 + r9*2]
mov rdx, r9
lea r9, [r9 + 1]
cmp r11d, ecx
jle 0x14006d446
test edi, 8
jne 0x14006d467
lea r8d, [rdx - 1]
mov dword [rbx + 0x10], r8d
and edi, 0x10
jne 0x14006d487
movzx eax, al
dec edx
imul rax, rax, 0xd
movsxd rdx, edx
add rax, rdx
movzx eax, word [r10 + rax*2]
sub ecx, eax
inc ecx
mov dword [rbx + 0xc], ecx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001000
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001080
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001077
nop dword [rax + rax]
lea rdx, [0x140018a50]
lea rcx, [rsp + 0x4c]
call fcn.14000474c
mov rcx, rbx
test eax, eax
je 0x1400010b7
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140018a70]
mov r9d, 0x30
lea r8, [0x140018a60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400010e0
add rsp, 0x270
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.qq.exe
jmp 0x140001087

Function at 0x140001acc
Capabilities:
Parse pe header

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

Function at 0x1400053e0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000544f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000544f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000544f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000544f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000544f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000544f
cmp dword [rcx + 0xf8], 0
je 0x14000544f
mov ecx, ebx
call fcn.140005500
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400052dc
nop
cmp dword [rbp + 0x20], 0
je 0x14000549d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400054a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400053e0

Function at 0x1400055e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400053e0
Function at 0x1400087dc
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000880c
xor eax, eax
jmp 0x1400088cf
mov rbp, rbx
cmp word [rax], si
je 0x140008831
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008818
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008814
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400086fc
movsxd r14, eax
test eax, eax
jne 0x14000886f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008805
mov rcx, r14
call fcn.1400096b8
mov rdi, rax
test rax, rax
jne 0x140008888
xor ecx, ecx
call fcn.140006df8
jmp 0x140008864
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400086fc
test eax, eax
jne 0x1400088b9
mov rcx, rdi
call fcn.140006df8
jmp 0x1400088c3
xor ecx, ecx
call fcn.140006df8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret