joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008e590
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x18008e6c8
test rdx, rdx
je 0x18008e6c8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18008e6c8
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18008e6c8
xor ebx, ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x18008e6be
xor eax, eax
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008e6b5
cmp dword [rsp + 0x8c], ebx
jne 0x18008e6b5
mov edx, dword [rsp + 0x88]
xor r8d, r8d
mov rcx, rsi
call fcn.180053610
nop
mov dword [rsp + 0x70], ebx
xor edx, edx
mov rcx, rsi
call fcn.18005347c
mov rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x88], eax
jne 0x18008e6b5
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x180098d00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x550
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x180098ec0
cmp ebx, 0x20
jb 0x180098ec0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x400
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x140]
call fcn.18009b770
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x140]
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x180098ec0
lea rcx, [rsp + 0x140]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180098db0
cmp rax, 0x40
jne 0x180098ec0
mov edx, 0x80
lea r9, [rsp + 0x140]
lea rax, [rsp + 0x40]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x40]
lea rax, [r8 - 0x60]
test rax, rax
je 0x180098dfd
movzx eax, byte [r9 + rcx]
test al, al
je 0x180098dfd
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x180098de0
test r8, r8
lea rax, [rcx - 1]
lea r9, [rsp + 0x160]
cmovne rax, rcx
lea rcx, [rsp + 0xc0]
mov byte [rax], 0
lea rax, [rsp + 0xc0]
sub r9, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x180098e50
movzx eax, byte [r9 + rcx]
test al, al
je 0x180098e50
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180098e30
test rdx, rdx
lea rax, [rcx - 1]
mov r8d, 0x400
cmovne rax, rcx
xor edx, edx
lea rcx, [rsp + 0x140]
mov byte [rax], 0
call fcn.18009b770
mov r8d, 0x400
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.180098ef0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180098ec0
mov rdx, rbx
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.180099ea0
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180098ec2
xor eax, eax
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.180050f90
mov rbx, qword [rsp + 0x570]
add rsp, 0x550
pop rdi
ret
Function at 0x180099900
Capabilities:
Get storage device properties

Disassembly:
push rbp
push r14
mov eax, 0x2c88
call fcn.180050fd0
sub rsp, rax
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x2c60], rax
mov r14d, edx
mov rbp, rcx
test rcx, rcx
je 0x180099b29
test edx, edx
je 0x180099b29
mov qword [rsp + 0x2ca8], rbx
mov qword [rsp + 0x2cb0], rsi
mov qword [rsp + 0x2cb8], rdi
mov qword [rsp + 0x2c80], r12
mov qword [rsp + 0x2c78], r13
mov r13d, 0x80070057
mov qword [rsp + 0x2c70], r15
xor r15d, r15d
mov ebx, r15d
mov edi, r15d
lea r12d, [r15 + 1]
nop dword [rax]
mov r9d, edi
lea r8, str..PhysicalDrive_d
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.180078580
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
lea rcx, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180099aea
xor eax, eax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x550]
xor edx, edx
mov qword [rsp + 0x4c], rax
mov r8d, 0x2710
mov dword [rsp + 0x48], r15d
call fcn.18009b770
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
lea rax, [rsp + 0x550]
mov dword [rsp + 0x28], 0x2710
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180099add
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x3e8
call fcn.18009b770
mov edx, dword [rsp + 0x568]
lea r9, [rsp + 0x160]
mov r8d, r12d
lea rcx, [rsp + 0x550]
call fcn.18009a8a0
lea rax, [r14 - 1]
mov ecx, r15d
cmp rax, 0x7ffffffe
mov rdx, r14
cmova ecx, r13d
test ecx, ecx
js 0x180099ad9
mov rax, rbp
test r14d, r14d
je 0x180099ac0
mov r8d, 0x7ffffffe
lea r9, [rsp + 0x160]
sub r8, rdx
sub r9, rbp
lea rcx, [r8 + rdx]
test rcx, rcx
je 0x180099ac0
movzx ecx, byte [r9 + rax]
test cl, cl
je 0x180099ac0
mov byte [rax], cl
inc rax
sub rdx, r12
jne 0x180099aa4
test rdx, rdx
lea rcx, [rax - 1]
cmovne rcx, rax
mov byte [rcx], r15b
mov ecx, 0x8007007a
cmovne ecx, r15d
test ecx, ecx
cmove ebx, r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180099af5
inc edi
cmp edi, 0x10
jl 0x180099980
mov r15, qword [rsp + 0x2c70]
mov eax, ebx
mov rbx, qword [rsp + 0x2ca8]
mov r13, qword [rsp + 0x2c78]
mov r12, qword [rsp + 0x2c80]
mov rdi, qword [rsp + 0x2cb8]
mov rsi, qword [rsp + 0x2cb0]
jmp 0x180099b2b
xor eax, eax
mov rcx, qword [rsp + 0x2c60]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x2c88
pop r14
pop rbp
ret
Function at 0x180099b50
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x180099c1e
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18009b770
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180099c1e
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x180099bb0
mov ecx, 0x103
mov eax, eax
sub rcx, rdx
cmp rax, rcx
jae 0x180099c1e
lea rcx, [rsp + 0x20]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180099bd2
mov eax, dword [0x1801047c0]
mov dword [rcx], eax
lea rcx, [rsp + 0x20]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180099bf0
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180099c00
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180099c20
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x240
pop rbx
ret
Function at 0x180099c40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call fcn.18009b770
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180098ef0
mov edx, 0x104
lea rax, [rsp + 0xc0]
mov r9, rdi
lea rcx, [rsp + 0xc0]
mov r8d, edx
sub r9, rax
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x180099cd0
movzx eax, byte [r9 + rcx]
test al, al
je 0x180099cd0
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x180099cb0
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov rcx, rdx
mov byte [rax], 0
lea rax, [rsp + 0xc0]
nop dword [rax]
cmp byte [rax], 0
je 0x180099cfe
inc rax
sub rcx, 1
jne 0x180099cf0
xor r8d, r8d
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x180099d5f
lea rcx, [rsp + 0xc0]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x180099d51
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, [rsp + 0x40]
sub r9, rcx
test rax, rax
je 0x180099d51
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x180099d51
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x180099d33
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x100
lea rcx, [rsp + 0x1d0]
call fcn.18009b770
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x1d0]
mov rcx, 0xffffffff80000002
lea r8, str.mid64
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov rbx, 0xffffffffffffffff
test eax, eax
jne 0x180099e2d
lea rax, [rsp + 0x1d0]
sub rdi, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x180099de3
inc rax
test ecx, ecx
jne 0x180099dd1
test edx, edx
je 0x180099e2d
lea rcx, [rsp + 0x1d0]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x180099df2
mov dword [rsp + 0x28], eax
lea r8, str.mid64_old
lea rax, [rsp + 0x1d0]
mov r9d, 1
lea rdx, str.SoftwareWow6432NodeComMaster
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea rax, [rsp + 0xc0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180099e35
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], ebx
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.mid64
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareWow6432NodeComMaster
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.180050f90
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2e0
pop rdi
ret
Function at 0x1800b6fbc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800b6fb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18009e93c
or eax, 0xffffffff
jmp 0x1800b6fb6
xor eax, eax
add rsp, 0x28
ret
jmp 0x1800b6f94

Function at 0x1800bfa9c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800bf93c
call fcn.18009e9ac
mov dword [rax], 0x16
call fcn.18009e85c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800bf924
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800bf924
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800bf96e
lock or dword [rax + 0x14], 0x10
jmp 0x1800bf924
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800bf98b
mov rcx, qword [rbp + 0x10]
call fcn.1800c0938
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800b9c60
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800c03b8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800bf9e2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800bf924
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800bfa4e
mov rcx, qword [rbp + 0x10]
call fcn.1800b9c60
cmp eax, 0xffffffff
je 0x1800bfa35
mov rcx, qword [rbp + 0x10]
call fcn.1800b9c60
cmp eax, 0xfffffffe
je 0x1800bfa35
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800b9c60
movsxd rdi, eax
lea rsi, [0x180155ac0]
mov rcx, rbx
sar rdi, 6
call fcn.1800b9c60
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800bfa3c
lea rax, [0x180144700]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800bfa4e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800bfa84
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800bfa80
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800bfa80
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800bf927
jmp 0x1800bf8f4
Function at 0x1800cd564
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800cd577
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800cdb84
lea rdx, [0x18013dd28]
lea rcx, [rsp + 0x20]
call fcn.18009b204
int3

Function at 0x1800d7dec
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1801562a0]
xor edx, edx
jmp fcn.1800cd564

Function at 0x1800d8784
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1801562a0]
jmp fcn.1800cd564

Function at 0x1800e4328
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800e43e4]
mov r9, qword [r9 + 8]
jmp fcn.1800d57a4

Function at 0x1800e43bc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800e43f4]
mov r9, qword [r9 + 8]
jmp fcn.1800d57a4
Function at 0x1800011e0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor ebx, ebx
lea rdx, [rsp + 0x270]
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180001210
lea rcx, [rsp + 0x270]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x180001230
lea rcx, [rsp + rax*2 + 0x26e]
movzx eax, word [rsp + rax*2 + 0x26e]
cmp ax, word [0x18001afb0]
jne 0x180001261
movzx eax, word [rcx + 2]
cmp ax, word [0x18001afb2]
je 0x180001282
lea rcx, [rsp + 0x270]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180001270
mov eax, dword [0x18001afb0]
mov dword [rcx], eax
lea rax, [rsp + 0x270]
sub rax, 2
nop
cmp word [rax + 2], bx
lea rax, [rax + 2]
jne 0x180001290
movsd xmm0, qword [0x18001afb8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
movsd qword [rax], xmm0
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001322
test byte [rsp + 0x20], 0x10
je 0x180001305
movzx ecx, word [rsp + 0x4c]
cmp cx, word [0x18001afc0]
movzx eax, word [rsp + 0x4e]
jne 0x1800012e5
cmp ax, word [0x18001afc2]
je 0x180001307
cmp cx, word [0x18001afc4]
jne 0x180001305
cmp ax, word [0x18001afc6]
jne 0x180001305
movzx eax, word [rsp + 0x50]
cmp ax, word [0x18001afc8]
je 0x180001307
inc ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800012c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180006160
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x490
pop rdi
ret
Function at 0x180001610
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rdi, [0x18001fcf0]
xor eax, eax
mov esi, 4
lea rbp, [0x18001fd00]
mov r15, rdi
lea r13, [0x18001b0a0]
mov r14d, eax
lea rbx, [0x18001fd10]
mov r12d, esi
nop dword [rax]
mov r8, qword [r14 + r13]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + rbx], rax
add rbp, 4
xor eax, eax
lea r14, [r14 + 8]
mov dword [r15], eax
lea r15, [r15 + 4]
sub r12, 1
jne 0x180001660
or r9d, 0xffffffff
lea r8d, [rax + 1]
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r13, qword [rsp + 0x60]
nop dword [rax]
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x1800016b0
cmp dword [0x18001fcf0], 5
jae 0x1800016e5
cmp dword [0x18001fcf4], 5
jb 0x180001702
cmp dword [0x18001fcf8], 0xf70
jb 0x180001702
cmp dword [0x18001fcfc], 2
jb 0x180001702
mov rcx, r13
call fcn.180003270
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180001740
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000177d
lea rax, [rsp + 0x48]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180001720]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000177d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180002590
Capabilities:
Encode data using xor

Disassembly:
mov r8d, edx
xor eax, eax
shr r8d, 2
mov r10, rcx
test r8d, r8d
je 0x180002643
cmp r8d, 8
jb 0x18000261d
movdqa xmm2, xmmword [0x18001b230]
mov ecx, r8d
movdqa xmm3, xmmword [0x18001b240]
and ecx, 7
mov r9d, r8d
sub r9d, ecx
nop word [rax + rax]
movdqu xmm0, xmmword [r10 + rax*4]
lea edx, [rax + 4]
movd xmm1, eax
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
psubd xmm1, xmm3
pxor xmm1, xmm0
movdqu xmmword [r10 + rax*4], xmm1
add eax, 8
movd xmm1, edx
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
psubd xmm1, xmm3
movdqu xmm0, xmmword [r10 + rdx*4]
pxor xmm1, xmm0
movdqu xmmword [r10 + rdx*4], xmm1
cmp eax, r9d
jb 0x1800025d0
cmp eax, r8d
jae 0x180002643
lea rdx, [r10 + rax*4]
nop word [rax + rax]
lea ecx, [rax - 0xff0100]
inc eax
xor dword [rdx], ecx
lea rdx, [rdx + 4]
cmp eax, r8d
jb 0x180002630
ret

Function at 0x180002650
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea esi, [rdx - 0x10]
mov rbx, rcx
mov ecx, esi
mov r14, r8
mov edi, esi
call fcn.18000854c
mov r10, rax
test rax, rax
je 0x180002778
xor r8d, r8d
mov word [rsp + 0x20], 0
mov ecx, r8d
nop dword [rax]
mov byte [rsp + rcx + 0x22], cl
inc rcx
cmp rcx, 0x100
jb 0x1800026a0
xor r9b, r9b
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rsp + r8 + 0x22]
mov rax, r8
and eax, 0xf
movzx ecx, byte [rax + rbx]
add cl, dl
add r9b, cl
lea rcx, [rsp + 0x22]
movzx eax, r9b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x22], al
inc r8
mov byte [rcx], dl
cmp r8, 0x100
jb 0x1800026c0
test esi, esi
je 0x180002772
movzx edx, byte [rsp + 0x21]
mov r9, r10
movzx r8d, byte [rsp + 0x20]
sub rbx, r10
nop dword [rax]
inc r8b
lea r9, [r9 + 1]
mov byte [rsp + 0x20], r8b
movzx eax, r8b
lea r8, [rsp + 0x22]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x21], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp + 0x22]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x21]
movzx r8d, byte [rsp + 0x20]
movzx ecx, byte [rsp + rdx + 0x22]
add cl, byte [rsp + r8 + 0x22]
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x22]
xor cl, byte [rbx + r9 + 0xf]
mov byte [r9 - 1], cl
sub rdi, 1
jne 0x180002710
mov dword [r14], esi
mov rax, r10
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180006160
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop r14
pop rdi
pop rsi
ret
Function at 0x1800027a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r13
sub rsp, 0x58
mov rax, rdx
mov rbp, rcx
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000292b
mov qword [rsp + 0x80], rdi
lea ecx, [r13 + 0x40]
movsxd rdi, dword [rbp + 0x3c]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
mov r14d, dword [rdi + rbp + 0x54]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x18000290b
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call fcn.180007100
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], r13
mov r8d, r14d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180002902
movzx r10d, word [rdi + rbp + 6]
lea rcx, [rbp + 0x108]
add rcx, rdi
mov r8d, r13d
mov r9d, r13d
mov eax, r13d
cmp r10d, 2
jb 0x1800028a2
lea eax, [r10 - 2]
shr eax, 1
inc eax
mov edx, eax
add eax, eax
nop dword [rax]
nop word [rax + rax]
add r8d, dword [rcx + 0x10]
add r9d, dword [rcx + 0x38]
add rcx, 0x50
sub rdx, 1
jne 0x180002890
cmp eax, r10d
jae 0x1800028ab
add r14d, dword [rcx + 0x10]
lea edx, [r8 - 4]
mov dword [rsp + 0x98], r13d
add edx, r9d
xor r8d, r8d
add edx, r14d
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x180002902
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], r13
mov r8d, 4
lea rdx, [rsp + 0x98]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x80]
movzx eax, bl
add rsp, 0x58
pop r13
pop rsi
pop rbp
pop rbx
ret

Function at 0x180002940
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov r11, qword [0x18001fd78]
mov rbp, rcx
mov ebx, dword [0x18001fd34]
mov rcx, r11
mov edx, ebx
call fcn.180002590
movsxd rax, dword [r11 + 0x3c]
movzx edx, word [rax + r11 + 6]
test edx, edx
je 0x1800029fb
mov qword [rsp + 0x30], rsi
lea rbx, [r11 + 0x118]
add rbx, rax
mov qword [rsp + 0x40], rdi
mov esi, edx
nop dword [rax]
mov edi, dword [rbx - 4]
lea r9, [rsp + 0x38]
mov edx, dword [rbx]
add rdi, rbp
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800029da
mov edx, dword [rbx + 4]
mov rcx, rdi
add rdx, qword [0x18001fd78]
mov r8d, dword [rbx]
call fcn.180007100
mov edx, dword [rbx]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rbx, 0x28
sub rsi, 1
jne 0x180002990
mov ebx, dword [0x18001fd34]
mov r11, qword [0x18001fd78]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov edx, ebx
mov rcx, r11
call fcn.180002590
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret