joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009bf0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.180005a40
xor ebx, ebx
cmp qword [0x18000fdd8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x180009d1c
lea rcx, [0x180001ac0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x180009e2f
lea rdx, [0x180001ab0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009e2f
mov rcx, rax
call fcn.180005960
lea rdx, [0x180001aa0]
mov rcx, rsi
mov qword [0x18000fdd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180005960
lea rdx, [0x180001a88]
mov rcx, rsi
mov qword [0x18000fde0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180005960
lea rcx, [rsp + 0x98]
mov qword [0x18000fde8], rax
call fcn.1800055d0
test eax, eax
je 0x180009ccf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180007ad0
cmp dword [rsp + 0x98], 2
jne 0x180009d1c
lea rdx, [0x180001a68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180005960
test rax, rax
mov qword [0x18000fdf8], rax
je 0x180009d1c
lea rdx, [0x180001a50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180005960
mov qword [0x18000fdf0], rax
mov rcx, qword [0x18000fdf0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x180009dc8
cmp qword [0x18000fdf8], rbp
je 0x180009dc8
call fcn.180005b30
mov rcx, qword [0x18000fdf8]
mov rsi, rax
call fcn.180005b30
test rsi, rsi
mov r12, rax
je 0x180009dc8
test rax, rax
je 0x180009dc8
call rsi
test rax, rax
je 0x180009d93
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180009d93
test byte [rsp + 0x40], 1
jne 0x180009dc8
lea rcx, [rsp + 0x30]
call fcn.180005620
test eax, eax
je 0x180009db5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180007ad0
cmp dword [rsp + 0x30], 4
jb 0x180009dc2
bts edi, 0x15
jmp 0x180009e06
bts edi, 0x12
jmp 0x180009e06
mov rcx, qword [0x18000fde0]
cmp rcx, rbp
je 0x180009e06
call fcn.180005b30
test rax, rax
je 0x180009e06
call rax
test rax, rax
mov rbx, rax
je 0x180009e06
mov rcx, qword [0x18000fde8]
cmp rcx, rbp
je 0x180009e06
call fcn.180005b30
test rax, rax
je 0x180009e06
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000fdd8]
call fcn.180005b30
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x180009e2f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180009e31
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b540
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18000b587
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180004f80
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.18000b520
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180004f80
add rsp, 0x38
ret
Function at 0x180001650
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x1800016de
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180010ab0
add rsp, 0x80
pop rbp
ret

Function at 0x180004c2c
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rdx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
or rdi, 0xffffffffffffffff
mov rsi, rax
cmp rax, rdi
je 0x180004d9c
mov r14d, 0x130
mov ecx, r14d
call fcn.180010adc
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memset
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_memset]
mov rdx, rbx
mov dword [rbx], r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x180004d88
mov ebp, dword [rsp + 0x70]
lea r12, [rbx + 0x2c]
mov rcx, qword [0x181779768]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x180012470]
mov r8d, dword [rbx + 8]
cmp al, 6
sbb ecx, ecx
xor edx, edx
and ecx, 0xfffff400
add ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x400
mov rdi, rax
call qword [sym.imp.msvcrt.dll_malloc]
xor r15b, r15b
mov r14, rax
test rdi, rdi
je 0x180004d21
mov rdx, rdi
call fcn.1800049a4
mov edx, dword [rbx + 8]
mov r15b, al
call fcn.180004c0c
mov r8, r14
mov rdx, rdi
mov ebp, eax
call fcn.180004a9c
test rdi, rdi
mov ecx, dword [rbx + 0x20]
setne dl
mov r9d, dword [rbx + 8]
mov r8d, ebp
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov byte [rsp + 0x28], r15b
mov dword [rsp + 0x20], ecx
mov rcx, r13
call fcn.180004820
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 0x130
xor edx, edx
mov r8d, r14d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_memset]
mov rdx, rbx
mov dword [rbx], r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180004cb5
xor edi, edi
mov rdx, r14
mov rcx, rbx
call fcn.180010ad4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180005100
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18000510e
or eax, 0xffffffff
jmp 0x18000511a
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x180005120
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18000512e
or eax, 0xffffffff
jmp 0x18000513a
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec eax
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x180005140
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18000514e
or eax, 0xffffffff
jmp 0x18000515c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
dec eax
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x180005164
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
mov r9, rcx
lea rcx, [rsp + 0x50]
call fcn.1800054d4
nop
mov r8, rax
mov rdx, rbx
mov rcx, r9
call fcn.1800051a0
nop
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.180005120

Function at 0x1800051a0
Capabilities:
Enumerate files on windows

Disassembly:
mov r9, r8
mov r8b, 1
jmp 0x1800051f8
Function at 0x1800051b8
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1800051cf
mov rdx, rcx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add rsp, 0x28
ret

Function at 0x180007350
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rsp + 0x440], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
xor esi, esi
and qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180007475
mov rcx, qword [0x181779778]
lea edx, [rsi + 0x1c]
call fcn.180002a08
neg eax
mov rcx, rbp
sbb edi, edi
and edi, 0xfff81000
add edi, 0x80000
mov edx, edi
call fcn.1800043ac
xor edx, edx
mov dword [rbp + 0x20], 0x1e
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
cmp dword [rsp + 0x34], esi
jbe 0x18000745a
cmp esi, edi
jae 0x18000745a
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000745a
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
add esi, dword [rsp + 0x30]
mov rcx, rbp
call fcn.180004498
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180007475
cmp dword [rsp + 0x34], 0
ja 0x1800073ef
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180007471
mov byte [rbx + 0xd], 1
mov eax, esi
jmp 0x180007478
or eax, 0xffffffff
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180010ab0
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret

Function at 0x180008da8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rbx, [rcx + 8]
mov rdi, rcx
mov rax, qword [rbx]
test rax, rax
jne 0x180008e10
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008e0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180008e07
mov r9d, dword [rdi]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008e0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180008eb4
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

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, 0x50
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rax - 0x20]
mov r14d, r9d
call fcn.180008d70
lea rcx, [rsp + 0x38]
call fcn.180008da8
xor ebx, ebx
test rax, rax
je 0x180008f7d
lea rcx, [rsp + 0x38]
call fcn.180008da8
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180008f77
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180008f77
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x30], r8d
call qword [sym.imp.msvcrt.dll_memset]
mov r8, qword [rsp + 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi]
lea edx, [rbx + 2]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180008f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.180008d80
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x180008fd4
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x70
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
mov edi, r9d
mov rcx, rdx
mov rbp, r8
mov rbx, rdx
call fcn.180008da8
xor r15d, r15d
test rax, rax
jne 0x18000900f
or eax, 0xffffffff
jmp 0x18000907a
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x2c]
call qword [sym.imp.msvcrt.dll_memset]
mov r8, rdi
mov dword [rsp + 0x30], 0x208
mov rdx, rbp
mov dword [rsp + 0x34], 0x660e
lea rcx, [rsp + 0x3c]
mov dword [rsp + 0x38], edi
call qword [sym.imp.msvcrt.dll_memcpy]
mov rcx, rbx
call fcn.180008da8
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov rcx, rax
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x180009078
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000900a
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180010ab0
add rsp, 0x70
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180009170
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rbp - 0x38]
mov r15, r9
call fcn.180008d70
lea rcx, [rbp - 0x38]
call fcn.180008da8
xor edi, edi
test rax, rax
jne 0x1800091c3
or edi, 0xffffffff
jmp 0x1800092c1
lea rcx, [rbp - 0x40]
call fcn.180008fa8
mov r9d, ebx
lea rdx, [rbp - 0x38]
mov r8, r14
lea rcx, [rbp - 0x40]
call fcn.180008fd4
test eax, eax
je 0x1800091eb
or edi, 0xffffffff
jmp 0x1800092b8
lea rcx, [rbp - 0x40]
call fcn.1800090c8
lea rcx, [rbp - 0x38]
mov rbx, rax
call fcn.180008da8
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rbx
mov edx, 0x8009
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800092b0
xor edx, edx
lea rcx, [rbp - 0x28]
lea r8d, [rdx + 0x28]
call qword [sym.imp.msvcrt.dll_memset]
mov rcx, qword [rsi]
lea r8, [rbp - 0x28]
xor r9d, r9d
mov dword [rbp - 0x28], 0x800c
lea edx, [r9 + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x1800092b0
mov r8d, dword [rbp + 0x40]
xor r9d, r9d
mov rcx, qword [rsi]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800092b0
mov rcx, qword [rsi]
lea r9, [rbp + 0x48]
xor r8d, r8d
mov dword [rbp + 0x48], edi
mov dword [rsp + 0x20], edi
lea ebx, [r8 + 2]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800092b0
mov r9, qword [rbp + 0x58]
mov eax, dword [r9]
cmp dword [rbp + 0x48], eax
je 0x180009299
or edi, 0xffffffff
jmp 0x1800092b8
mov r8, qword [rbp + 0x50]
mov edx, ebx
mov rcx, qword [rsi]
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1800092b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rbp - 0x40]
call fcn.180008fb0
lea rcx, [rbp - 0x38]
call fcn.180008d80
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800093ec
Capabilities:
Encrypt or decrypt via wincrypt

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, 0x60
mov r14, r8
mov rdi, rdx
xor r8d, r8d
mov rsi, rcx
lea rcx, [rax - 0x18]
mov rbp, r9
lea edx, [r8 + 1]
call fcn.180008d70
lea rcx, [rsp + 0x50]
call fcn.180008da8
xor ebx, ebx
test rax, rax
jne 0x18000943d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800094e6
lea rcx, [rsp + 0x48]
call fcn.1800092e8
mov r9d, dword [rsi + 8]
lea rdx, [rsp + 0x50]
mov r8, qword [rsi]
lea rcx, [rsp + 0x48]
call fcn.180009314
lea rcx, [rsp + 0x48]
call fcn.1800093dc
test rax, rax
je 0x1800094d6
xor r9d, r9d
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1800094d6
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x90]
lea rdx, [rcx - 1]
mov qword [rax], rcx
test rdx, rdx
je 0x1800094d2
mov r8, rdi
mov al, byte [rdx + rdi]
mov cl, byte [r8]
mov byte [r8], al
inc r8
mov rax, r8
mov byte [rdx + rdi], cl
sub rax, rdi
dec rdx
cmp rax, rdx
jb 0x1800094b5
mov bl, 1
jmp 0x1800094dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x48]
call fcn.1800092f0
lea rcx, [rsp + 0x50]
call fcn.180008d80
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x180009530
Capabilities:
Encrypt or decrypt via wincrypt

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 rbp
mov rbp, rsp
sub rsp, 0x60
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rbp - 0x10]
mov rdi, r9
call fcn.180008d70
lea rcx, [rbp - 0x10]
call fcn.180008da8
test rax, rax
jne 0x180009586
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180009614
lea rcx, [rbp - 0x18]
call fcn.180008fa8
mov r9d, dword [rbx + 8]
lea rdx, [rbp - 0x10]
mov r8, qword [rbx]
lea rcx, [rbp - 0x18]
call fcn.180008fd4
test eax, eax
jne 0x180009603
lea rcx, [rbp - 0x18]
call fcn.180009094
test eax, eax
jne 0x180009603
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x18]
call fcn.1800090b8
test eax, eax
jne 0x180009603
lea rcx, [rbp - 0x18]
call fcn.1800090c8
test rax, rax
je 0x180009603
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov dword [rbp - 0x20], edi
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rax, qword [rbp + 0x30]
mov ecx, dword [rbp - 0x20]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x18]
mov ebx, eax
call fcn.180008fb0
lea rcx, [rbp - 0x10]
call fcn.180008d80
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000963c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x18], r8
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov edx, 0x18
lea rcx, [rbp - 0x10]
mov r8d, 0xf0000000
mov rdi, r9
call fcn.180008d70
lea rcx, [rbp - 0x10]
call fcn.180008da8
test rax, rax
jne 0x18000968f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000970f
lea rcx, [rbp + 0x30]
call fcn.180008fa8
mov r9d, dword [rbx + 8]
lea rdx, [rbp - 0x10]
mov r8, qword [rbx]
lea rcx, [rbp + 0x30]
call fcn.180008fd4
test eax, eax
jne 0x1800096fe
lea rcx, [rbp + 0x30]
call fcn.180009094
test eax, eax
jne 0x1800096fe
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp + 0x30]
call fcn.1800090b8
test eax, eax
jne 0x1800096fe
lea rcx, [rbp + 0x30]
call fcn.1800090c8
test rax, rax
je 0x1800096fe
lea rcx, [rbp + 0x20]
mov dword [rbp + 0x20], edi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp + 0x30]
mov ebx, eax
call fcn.180008fb0
lea rcx, [rbp - 0x10]
call fcn.180008d80
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret

Function at 0x1800097b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, r8d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rsi, rdx
lea edx, [r8 + 1]
call fcn.180008d70
lea rcx, [rsp + 0x20]
call fcn.180008da8
xor ebx, ebx
test rax, rax
je 0x1800097f9
mov r8, rsi
mov edx, edi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1800097fc
or ebx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.180008d80
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000ccf0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000cd2c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.180010d20
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x18000cde8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000ce4e
test ebx, ebx
jne 0x18000ce4e
lea ecx, [rax + 2]
call fcn.180010d20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180010ab0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x180010940
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x1800109fc
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x1800109f7
mov eax, 1
xchg dword [0x1817791c0], eax
cmp eax, 1
jne 0x1800109b0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x1817791c0], eax
cmp eax, 1
je 0x180010995
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800109ef
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x1817791c0], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]