joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015940
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov ebx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rbx + 0x2f]
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [rsp + 0x20]
xor esi, esi
test edx, edx
je 0x1800159d4
cmp edx, 8
je 0x1800159cb
test edx, edx
je 0x1800159af
sub edx, 5
je 0x1800159a6
dec edx
je 0x18001599d
cmp edx, 3
jne 0x1800159c7
lea r8, [0x180015a28]
jmp 0x1800159b6
lea r8, [0x180015a40]
jmp 0x1800159b6
lea r8, [0x180015a38]
jmp 0x1800159b6
lea r8, [0x180015a20]
mov edx, 0x104
mov rcx, rdi
call fcn.1800035e0
test eax, eax
jns 0x1800159ed
mov ebx, esi
jmp 0x1800159ed
lea r8, [0x180015a10]
jmp 0x1800159b6
lea r8, [0x180015a00]
mov edx, 0x104
mov rcx, rdi
call fcn.1800035e0
test eax, eax
cmovs ebx, esi
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180016584
Capabilities:
Check internet connectivity via wininet

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
cmp dword [0x18002401c], 0
mov rbx, rcx
jne 0x180016623
test rcx, rcx
je 0x180016623
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
xor edx, edx
test eax, eax
sete dl
mov dword [rbx + 0x19c], edx
test edx, edx
je 0x1800165d0
mov rdx, qword [rbx]
mov ecx, 1
call qword [sym.imp.WININET.dll_InternetAutodial]
cmp qword [rbx + 0x1e8], 0
jne 0x1800165e6
call fcn.1800167bc
mov qword [rbx + 0x1e8], rax
mov rcx, qword [rbx + 0x1e8]
test rcx, rcx
je 0x180016614
lea rdx, [0x180016630]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180016614
mov rcx, rax
call qword [0x180027998]
call rbx
jmp 0x180016625
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
jmp 0x180016625
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800166cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x180016713
test al, 0x10
jne 0x180016713
lea edx, [rbx + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x180016713
lea rdx, [0x180020d20]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea ecx, [rbx + 1]
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800167bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor edi, edi
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x40], di
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x38]
lea r9d, [rdi + 1]
lea rdx, [0x1800168d0]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001689c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x180016958]
xor r8d, r8d
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001688c
cmp dword [rsp + 0x34], 1
jne 0x18001688c
cmp dword [rsp + 0x30], 0x208
ja 0x18001688c
lea rcx, [rsp + 0x40]
call fcn.18000a944
mov rbx, rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18001689c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180016f0c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2b0
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
mov r14, rax
test rbp, rbp
je 0x180017089
test rsi, rsi
je 0x180017089
xor edi, edi
lea rcx, [rsp + 0x30]
call fcn.18001e704
mov ebx, eax
test eax, eax
jne 0x18001708e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.18001e7dc
mov ebx, eax
test eax, eax
jne 0x18001708e
lea rcx, [rsp + 0x90]
mov r8, rbp
mov edx, 0x104
call fcn.1800035e0
test eax, eax
js 0x180017037
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
mov r8d, 0x104
call fcn.18001a2a4
test eax, eax
je 0x180017037
lea rcx, [rsp + 0x90]
call fcn.18001f058
mov ebx, eax
test eax, eax
jne 0x18001708e
lea rcx, [rsp + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180017033
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x180017008
inc edi
xor ebx, ebx
cmp edi, 0x80
jb 0x180016f56
jmp 0x180017040
mov dword [rsp + 0x28], eax
mov edx, 8
lea rax, [rsp + 0x90]
lea r9, [0x1800170b8]
lea r8d, [rdx - 7]
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.18001db4c
jmp 0x18001703c
xor ebx, ebx
jmp 0x180017040
mov ebx, 0xd
test ebx, ebx
jne 0x18001708e
cmp edi, 0x80
jb 0x180017069
mov ebx, 0xd
lea r9, [0x180017100]
mov rcx, r14
lea edx, [rbx - 5]
lea r8d, [rbx - 0xc]
mov dword [rsp + 0x20], ebx
call fcn.18001db4c
jmp 0x18001708e
lea r8, [rsp + 0x90]
mov edx, 0x104
mov rcx, rsi
call fcn.1800035e0
test eax, eax
jns 0x18001708e
mov ebx, 0x7a
jmp 0x18001708e
mov ebx, 0x57
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180017690
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
call fcn.18001df40
test eax, eax
je 0x18001779b
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
lea rdx, [0x180020e90]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180017722
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, [0x180020e60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
lea rdx, [0x180020f60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18001779b
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
lea rdx, [0x180020f10]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret

Function at 0x1800177a8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov ebx, dword [0x1800248a0]
mov r14, rcx
mov edi, r8d
lea rcx, [rbp - 0x5e]
xor r15d, r15d
xor edx, edx
mov r8d, 0x3fe
mov esi, r9d
mov word [rbp - 0x60], r15w
call sub.msvcrt.dll_memset
mov edx, edi
mov ecx, ebx
call fcn.18001790c
lea r8, [0x1800178b0]
lea rcx, [rbp - 0x60]
mov r9d, ebx
mov edx, 0x200
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
call fcn.18000df90
lea ebx, [r15 + 0x70]
lea rcx, [rsp + 0x30]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x180020c28]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [0x1800178f0]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x34], 0x2004000
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x50], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [rbx - 0x6f]
test eax, eax
cmovne r15d, ecx
mov eax, r15d
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.180001ac0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180019010
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x30], 0x64
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
test rax, rax
je 0x1800190b1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x3c], 0xc000
call fcn.180019320
test eax, eax
je 0x1800190b1
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1800190a3
cmp dword [rsp + 0x34], 2
jle 0x1800190a3
mov rcx, qword [rax + 0x10]
lea r8, [rsp + 0x30]
lea rdx, [0x1800190c0]
call qword [sym.imp.msvcrt.dll_swscanf]
mov ecx, dword [0x180024800]
cmp eax, 1
cmove ecx, dword [rsp + 0x30]
mov dword [0x180024800], ecx
mov r8, rdi
call fcn.180019224
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18001a458
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x38], rbx
test rcx, rcx
jne 0x18001a492
lea edi, [rcx + 0x57]
jmp 0x18001a56d
cmp dword [0x1800248b8], ebx
jne 0x18001a55a
lea r9, [rsp + 0x38]
mov r8d, 1
lea rdx, [0x18001a5b0]
mov rcx, 0xffffffff80000002
call fcn.18001f840
mov edi, eax
test eax, eax
jne 0x18001a50a
mov dword [rsp + 0x30], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x180024958]
lea r8, [rsp + 0x34]
lea rdx, [0x18001a5f0]
mov rcx, qword [rsp + 0x38]
call fcn.18001faac
mov edi, eax
test eax, eax
jne 0x18001a50a
cmp dword [rsp + 0x34], 3
jne 0x18001a505
cmp dword [rsp + 0x30], 8
je 0x18001a50a
mov edi, 0xd
test edi, edi
je 0x18001a550
xor r9d, r9d
lea r8d, [r9 + 0x30]
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 3]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x18001a534
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x18001a54c
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [0x180024958], rax
mov edi, ebx
test edi, edi
jne 0x18001a56d
mov dword [0x1800248b8], 1
mov rax, qword [0x180024958]
mov qword [rsi], rax
jmp 0x18001a56d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18001a57d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001a608
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
xor ebx, ebx
mov edi, ebx
test rcx, rcx
jne 0x18001a637
lea edi, [rcx + 0x57]
jmp 0x18001a68e
cmp dword [0x1800248bc], ebx
jne 0x18001a67b
xor r9d, r9d
lea r8d, [r9 + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [r9 + 3]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x18001a665
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x18001a68e
mov rax, qword [rsp + 0x20]
mov qword [0x180024950], rax
mov dword [0x1800248bc], 1
mov rax, qword [0x180024950]
mov qword [rsi], rax
jmp 0x18001a68e
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18001b2cc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x290
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov edi, ebx
mov r14d, ebx
mov dword [rsp + 0x24], ebx
mov rcx, qword [rcx + 0x20]
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
call fcn.18001ba1c
test eax, eax
jne 0x18001b32d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x18001b39b
mov rdx, qword [rsi + 0x20]
xor r8d, r8d
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
je 0x18001b31f
mov r14d, 1
mov dword [rsp + 0x24], r14d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [rsi + 0x2c], ebx
mov r8, qword [rsi + 0x10]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.18001f418
mov qword [rsi + 0x10], rbx
mov qword [rsi + 8], rbx
mov rcx, qword [rsi]
call fcn.18001ee3c
test eax, eax
je 0x18001b31f
mov r14d, ebx
mov dword [rsp + 0x24], ebx
mov rcx, rsi
call fcn.18001c368
lea rcx, [rsp + 0x70]
call fcn.18001f368
jmp 0x18001b3b2
test r14d, r14d
je 0x18001b3e1
cmp qword [rsi], 0xffffffffffffffff
je 0x18001b3e1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x18001b3e1
cmp dword [rsp + 0x58], 1
jbe 0x18001b3e1
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x18001bfa0
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
or qword [rdx], 0xffffffffffffffff
and qword [rdx + 8], 0
and dword [rdx + 0x30], 0
and dword [r11 + 0x20], 0
mov dword [rdx + 0x2c], r9d
lea r14, [rdx + 0x10]
and qword [r14], 0
lea rax, [r11 + 0x20]
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
mov qword [r11 - 0x50], rax
mov rbx, rdx
mov qword [r11 - 0x58], rdx
mov r9d, 0x7530
xor edx, edx
mov r12d, r8d
call fcn.18001f2ec
mov ebp, eax
test eax, eax
jne 0x18001c109
mov esi, dword [rsp + 0x98]
test esi, esi
jne 0x18001c049
mov rcx, qword [rbx]
call fcn.18001ccac
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, 0xffffefff
mov rcx, rdi
and dword [rdi + 0xc], ebp
mov esi, eax
call fcn.18001bc60
bt eax, 0xc
jae 0x18001c0b3
and eax, ebp
mov rcx, rdi
mov edx, eax
call fcn.18001c2fc
jmp 0x18001c0b3
cmp dword [rsp + 0xa0], 0
je 0x18001c0b3
cmp esi, dword [rdi + 8]
jb 0x18001c0b3
cmp dword [rdi + 0x18], 4
jae 0x18001c0b3
test dword [rdi + 0xc], 0x2000
jne 0x18001c0b3
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx], 0xffffffffffffffff
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x98]
mov edx, 0x10000
mov r9d, 0x7530
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.18001f2ec
mov ebp, eax
test eax, eax
jne 0x18001c109
mov esi, dword [rsp + 0x98]
cmp esi, dword [rdi + 8]
jb 0x18001c0b3
mov dword [rbx + 0x30], 1
mov rcx, qword [rbx]
lea edx, [rsi + r12]
lea r8, [rbx + 8]
mov r9, r14
call fcn.18001f258
mov ebp, eax
test eax, eax
jne 0x18001c109
mov eax, esi
mov qword [rbx + 0x20], rdi
xor edi, edi
add rax, qword [r14]
xor edx, edx
mov qword [rbx + 0x18], rax
jmp 0x18001c0e3
inc edi
mov edx, edi
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.18001b93c
test eax, eax
jne 0x18001c0df
mov ecx, dword [rbx + 0x18]
lea eax, [rdi + rdi*4]
shl eax, 2
sub ecx, eax
sub ecx, dword [r14]
xor ebp, ebp
mov dword [rbx + 0x28], ecx
jmp 0x18001c129
mov rcx, rbx
call fcn.18001c368
mov eax, dword [0x1800248c4]
mov ecx, eax
inc eax
mov dword [0x1800248c4], eax
cmp ecx, 5
jbe 0x18001c129
and dword [rdi], 0
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x18001c14c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
xor edi, edi
mov ebx, edi
lea rdx, [rsp + 0x30]
call fcn.18001ba1c
test eax, eax
je 0x18001c19b
lea r8d, [rdi + 5]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18001c1a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ebx, eax
jmp 0x18001c1b4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001c1f0
Capabilities:
Check for time delay via gettickcount

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
xor r14d, r14d
lea r8, [rax - 0x28]
xor edx, edx
mov rsi, rcx
mov ebp, r14d
mov edi, r14d
call fcn.18001b93c
test eax, eax
je 0x18001c2b9
inc edi
lea r8, [rsp + 0x20]
mov rcx, rsi
mov edx, edi
call fcn.18001b93c
test eax, eax
jne 0x18001c228
test edi, edi
je 0x18001c2b9
mov rbx, qword [rsi + 0x20]
mov ecx, dword [rsi + 0x18]
mov eax, dword [rbx + 8]
sub ecx, dword [rsi + 0x10]
add eax, 0x40000
cmp ecx, eax
jb 0x18001c2b3
mov ecx, dword [rbx + 0x1c]
test ecx, ecx
je 0x18001c296
cmp edi, ecx
jne 0x18001c275
inc dword [rbx + 0x28]
cmp dword [rbx + 0x28], 4
jb 0x18001c2d6
mov qword [rbx + 0x1c], r14
mov dword [rbx + 0x28], r14d
jmp 0x18001c2d1
jbe 0x18001c296
cmp dword [rbx + 0x20], r14d
je 0x18001c2a3
mov eax, edi
sub eax, ecx
cmp dword [rbx + 0x20], eax
jb 0x18001c2a3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x24]
cmp eax, 0x493e0
jbe 0x18001c2d6
mov dword [rbx + 0x1c], edi
mov dword [rbx + 0x20], r14d
mov dword [rbx + 0x28], r14d
jmp 0x18001c2d6
sub edi, ecx
mov dword [rbx + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x24], eax
jmp 0x18001c2d6
mov qword [rbx + 0x1c], r14
jmp 0x18001c29d
mov rax, qword [rsi + 0x20]
mov dword [rax + 0x1c], r14d
mov rax, qword [rsi + 0x20]
mov dword [rax + 0x20], r14d
mov rax, qword [rsi + 0x20]
mov dword [rax + 0x28], r14d
mov ebp, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret

Function at 0x18001ccac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x11c
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x18001cd19
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x18001cdaf
movzx eax, byte [rbp + 0x8a]
movzx ecx, word [rbp + 0x88]
movzx edx, word [rbp + 0x86]
movzx r8d, word [rbp + 0x84]
lea r9, [0x18002101c]
mov qword [rsp + 0x50], r9
mov r9d, dword [rsp + 0x74]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x78]
lea r8, [0x18001cdd0]
lea rcx, [rbp + 0x90]
mov edx, 0xff
mov dword [rsp + 0x20], eax
call fcn.18001b250
test eax, eax
js 0x18001cdaf
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0x90]
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180001ac0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rbp
ret
Function at 0x18001de44
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
xor ecx, ecx
mov word [rbp - 0xc], 0x500
mov dword [rbp - 0x20], ebx
mov dword [rbp - 0x10], ebx
mov qword [rbp - 0x18], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rbp - 0x18]
lea r8d, [rbx + 0x12]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x10]
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18001dec4
call fcn.18001de24
mov edi, eax
test eax, eax
jne 0x18001defa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x18001dee4
mov edi, ebx
jmp 0x18001deef
call fcn.18001de24
mov edi, eax
test eax, eax
jne 0x18001defa
cmp dword [rbp - 0x20], ebx
mov eax, 0x529
cmove edi, eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18001df09
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x18001df40
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
xor ecx, ecx
mov word [rbp - 0xc], 0x500
mov dword [rbp - 0x20], ebx
mov dword [rbp - 0x10], ebx
mov qword [rbp - 0x18], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rbp - 0x18]
lea r8d, [rbx + 0x20]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x10]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18001dfc3
call fcn.18001de24
mov edi, eax
test eax, eax
jne 0x18001dff9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x18001dfe3
mov edi, ebx
jmp 0x18001dfee
call fcn.18001de24
mov edi, eax
test eax, eax
jne 0x18001dff9
cmp dword [rbp - 0x20], ebx
mov eax, 0x529
cmove edi, eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18001e008
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret