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

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 rbp, rcx
lea rdi, [rcx + 0xb8]
call fcn.180004cb0
mov rsi, rax
test rax, rax
je 0x180004bc8
nop word [rax + rax]
mov r8d, dword [rsi + 0x30]
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rbp + 0x58]
sub r8d, dword [rsi + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov r12d, eax
test eax, eax
jle 0x180004b33
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbp + 0x218], r12d
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180004b3c
cmp eax, 0xffffffff
je 0x180004bf4
cmp qword [rdi + 0x38], 0
je 0x180004b9c
xor r9d, r9d
cmp dword [rdi + 0x30], r9d
jbe 0x180004b9c
nop dword [rax]
mov r8d, dword [rdi + 0x78]
mov eax, dword [rdi + 0xb8]
mov r10d, dword [rdi + 0x30]
mov ecx, r8d
sub ecx, eax
cmp ecx, r10d
jge 0x180004b9c
xor edx, edx
mov eax, r8d
div r10d
mov ecx, edx
mov rdx, qword [rdi + 0x38]
cmp qword [rdx + rcx*8], 0
jne 0x180004b87
xor eax, eax
lock cmpxchg qword [rdx + rcx*8], rsi
je 0x180004be6
lea ecx, [r8 + 1]
mov eax, r8d
lock cmpxchg dword [rdi + 0x78], ecx
inc r9d
cmp r9d, dword [rdi + 0x30]
jb 0x180004b50
mov rcx, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
lea rdi, [rbp + 0xb8]
call fcn.180004cb0
mov rsi, rax
test rax, rax
jne 0x180004af0
mov eax, 1
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
lea ecx, [r8 + 1]
mov eax, r8d
lock cmpxchg dword [rdi + 0x78], ecx
jmp 0x180004bad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180004c61
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x1e8]
test rax, rax
je 0x180004c2b
mov qword [rax + 0x10], rsi
mov rax, qword [rbp + 0x1e8]
mov qword [rsi + 8], rax
jmp 0x180004c42
mov qword [rsi + 0x10], 0
mov qword [rsi + 8], 0
mov qword [rbp + 0x1f0], rsi
inc dword [rbp + 0x1e0]
lea rcx, [rbp + 0x1b8]
mov qword [rbp + 0x1e8], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180004bc8
lea rcx, [rdi + 0x30]
mov rdx, rsi
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x4c], 3
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x54], 1
call fcn.1800015b0
test eax, eax
jne 0x180004c9a
mov rcx, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x180004bcd
Function at 0x180004d60
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.180004140
test eax, eax
jne 0x180004d8c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180004f80
mov eax, dword [rbx + 0x88]
xor edi, edi
test eax, eax
je 0x180004dc5
cmp dword [rbx + 0x54], edi
je 0x180004dbf
mov rcx, qword [rbx + 0x58]
lea r8d, [rdi + 0x10]
lea rdx, [0x1800336a0]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbx + 0x88], edi
cmp dword [rbx + 0x48], edi
je 0x180004de2
mov rcx, qword [rbx + 0x68]
call fcn.180003210
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 0x180004df5
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rbx + 0x60], rdi
mov rcx, qword [rbx + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x180004e1c
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.180004e40
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180005330
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 0x180005398
mov rcx, rbx
call fcn.180004d60
movzx r8d, di
mov rdx, rsi
mov rcx, rbx
call fcn.180003f50
mov rcx, qword [rbx + 0x358]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800053e8
cmp eax, 0x102
je 0x1800053c9
cmp eax, 0xffffffff
jne 0x1800053d6
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, [0x180005440]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.18001569c
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 0x180005590
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 0x1800055d3
nop dword [rax]
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x1800055c0
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
xor r13d, r13d
lea ebp, [rsi + 0xe]
cmp qword [rdi + 0x340], r13
jne 0x1800055ea
mov edx, r13d
jmp 0x1800055f6
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 0x180005624
mov edx, r13d
jmp 0x180005630
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 0x18000566b
mov eax, r13d
jmp 0x180005677
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.180014c30
mov r11d, r13d
mov r9, r13
mov r10, r13
test esi, esi
jle 0x180005704
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 0x1800056b0
add qword [rdi + 0x348], rsi
cmp qword [rdi + 0x340], r13
jne 0x180005719
mov r8d, r13d
jmp 0x180005727
mov r8d, dword [rdi + 0x348]
sub r8d, dword [rdi + 0x340]
mov rdx, qword [rdi + 0x340]
mov rcx, rdi
call fcn.180005790
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 0x18000576e
dec dword [rdi + 0x18]
jne 0x18000576e
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 0x180007430
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], 0
call fcn.180017ae0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800074e3
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800074da
nop word [rax + 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 0x1800074c4
add rax, 2
test ecx, ecx
jne 0x1800074b0
mov rcx, rbx
test edx, edx
je 0x180007506
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800074a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180014c00
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x1800074e5
Function at 0x180007890
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r12, rcx
lea rcx, [rbp + 0x192]
xor r13d, r13d
xor edx, edx
mov r8d, 0x1fc
mov word [rbp + 0x190], r13w
call fcn.180017ae0
lea r11, [rsp + 0x70]
lea rdx, str.SoftwareTencentPluginVAS
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007a61
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x7c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180007a93
mov qword [rsp + 0x4d0], rsi
mov esi, dword [rsp + 0x64]
inc esi
cmp dword [rsp + 0x60], r13d
jbe 0x180007a59
cmp esi, 1
jbe 0x180007a59
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0x1fe
mov qword [rsp + 0x4c8], rbx
call fcn.180017ae0
mov ebx, r13d
cmp dword [rsp + 0x60], ebx
jbe 0x180007a46
nop word [rax + rax]
lea rcx, [rbp - 0x70]
xor edx, edx
mov r8d, 0xff
call fcn.180017ae0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x68]
lea r8, [rbp - 0x70]
mov edx, ebx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xc
jge 0x180007a3a
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jle 0x180007a3a
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x190]
mov edx, 0xff
call fcn.180015e38
lea r8, [0x180034230]
lea rcx, [rbp + 0x190]
mov edx, 0xff
call fcn.180015e38
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1800079b0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x4c8]
mov rsi, qword [rsp + 0x4d0]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x180007a93
mov r9d, 0xd6
lea r8, [rbp + 0x190]
mov rcx, r12
lea edx, [r9 + 1]
call fcn.180015938
mov eax, 1
jmp 0x180007a95
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x4a0
pop r13
pop r12
pop rbp
ret
Function at 0x180007fa0
Capabilities:
Check os version

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x170
mov rax, qword [0x18003ca90]
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.1800125c4
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsi + 0xcc8]
lea rdx, [0x180033f08]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call fcn.180007dc0
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x11c
xor ebx, ebx
call fcn.180017ae0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180008154
cmp dword [rsp + 0x50], 2
jne 0x180008154
cmp dword [rsp + 0x44], 5
jbe 0x180008154
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 0x180008154
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 0x180008101
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180008101
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 0x1800080f9
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 0x1800080f0
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 0x180008154
cmp ebx, 0x1000
je 0x18000814b
cmp ebx, 0x2000
je 0x180008142
cmp ebx, 0x3000
je 0x180008139
cmp ebx, 0x4000
jne 0x18000816b
lea rdx, [0x1800342a0]
jmp 0x18000815b
lea rdx, [0x180034290]
jmp 0x18000815b
lea rdx, [0x180034280]
jmp 0x18000815b
lea rdx, [0x180034270]
jmp 0x18000815b
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 0x180008188
mov rcx, rdi
call fcn.180015790
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x170
pop rdi
ret
Function at 0x1800081b0
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 [0x18003ca90]
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 0x18000825b
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 0x1800081f3
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.18001546c
lea r8, str._sFree_d_Gb
mov r9, r12
mov edx, 0xc8
mov rcx, r12
mov qword [rsp + 0x20], rbx
call fcn.18001546c
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.180014c00
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 0x180008340
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x18003ca90]
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.180017ae0
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 0x1800083b4
or ebx, 0xffffffff
jmp 0x180008425
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180008425
cmp eax, 2
ja 0x180008425
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 0x180008425
lea rdx, [0x180033f04]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x180008412
or ebx, 0xffffffff
jmp 0x180008425
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.180014c00
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r12
pop rdi
pop rsi
ret

Function at 0x180008a20
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, [0x180034360]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x180008a6f
call rax
jmp 0x180008a75
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x20]
mov ecx, 6
cmp cx, ax
je 0x180008a95
mov ecx, 9
cmp cx, ax
je 0x180008a95
xor eax, eax
add rsp, 0x58
ret
mov eax, 1
add rsp, 0x58
ret
Function at 0x180008aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [0x180034378]
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180008c03
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180008bfa
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.18001546c
mov r11d, 0xca
mov rcx, 0xffffffffffffffff
mov eax, 2
mov dword [rsp + 0x34], r11d
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.1800125c4
mov dword [rsp + 0x38], 1
mov rdi, rax
call fcn.180008a20
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 0x180008b97
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 0x180008be2
test esi, esi
jne 0x180008be2
lea r9d, [rax + 0x31]
lea edx, [rax + 0x32]
mov r8, rdi
mov rcx, rbp
call fcn.180015938
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.180015790
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 0x180008c10
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180008c93
lea r8, [rsp + 0x44]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x38]
xor eax, eax
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.NtDll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtSetInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x180008ccb
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x60
pop rbx
ret
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetCurrentProcessId
xor edx, edx
mov r8d, eax
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 + 0x19]
mov rcx, rax
call rbx
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x60
pop rbx
ret

Function at 0x180008d90
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180008dd7
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x68
ret
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x180008dc0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x60], rbx
xor ebx, ebx
lea r8, [rsp + 0x40]
xor edx, edx
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x68
ret