joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000d7f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub rsp, 0x18
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, byte [rax + 2]
cmp eax, 1
jne 0x18000d819
mov dword [rsp], 1
jmp 0x18000d820
mov dword [rsp], 0
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x18000d830
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rdi
sub rsp, 0xa0
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x20], 0
lea rax, [fcn.18000d830]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [0x1801663f8]
call fcn.1800053a0
nop
mov dword [rsp + 0x2c], 0x190
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x50]
call fcn.180001880
mov rcx, rax
call fcn.180002ec0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x5c]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18000d8ed
xor eax, eax
jmp 0x18000d95b
mov rdi, qword [rsp + 0x20]
mov eax, 0xc3
mov ecx, 1
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x5c]
lea r9, [rsp + 0x88]
mov r8d, 0x140
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000d925
xor eax, eax
jmp 0x18000d95b
call qword [rsp + 0x20]
nop
jmp 0x18000d943
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180081a40
add rsp, 0xa0
pop rdi
ret
Function at 0x180010750
Capabilities:
Check for software breakpoints

Disassembly:
push rdi
sub rsp, 0xe0
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea rcx, str.ACGameDetect::Detect_AntiCheatModification::CheckFunctionCalls
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBegin]
nop
lea rax, [0x1801663f8]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.18000a270
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x50]
call fcn.18000a290
mov qword [rsp + 0x60], rax
jmp 0x1800107b3
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
je 0x180010921
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0xd0], 0
mov qword [rsp + 0x20], 0
mov r9d, 1
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800108f9
movzx eax, byte [rsp + 0xd0]
cmp eax, 0xe9
je 0x180010856
movzx eax, byte [rsp + 0xd0]
cmp eax, 0x90
je 0x180010856
movzx eax, byte [rsp + 0xd0]
cmp eax, 0xc3
je 0x180010856
movzx eax, byte [rsp + 0xd0]
cmp eax, 0x66
je 0x180010856
movzx eax, byte [rsp + 0xd0]
cmp eax, 0xcc
jne 0x1800108f9
mov rcx, qword [0x180166810]
call fcn.180004120
nop
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.18000f920
mov rcx, rax
call fcn.1800037d0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1800030c0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.180004bc0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 1
mov rcx, qword [0x180166810]
call fcn.180057660
nop
lea rcx, [rsp + 0x90]
call fcn.1800035f0
nop
call fcn.18004bbb0
nop
jmp 0x180010921
mov dword [rsp + 0x40], 0x190
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.180001880
mov rcx, rax
call fcn.180002ec0
nop
jmp 0x1800107a5
mov dword [rsp + 0x44], 0x190
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x88]
call fcn.180001880
mov rcx, rax
call fcn.180002ec0
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [0x1801663e8]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [0x1801663f0]
add ecx, eax
mov eax, ecx
mov dword [0x1801663f0], eax
movss xmm0, dword [0x1801224fc]
movss dword [0x1801663e0], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [0x1801663e8], rax
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.180081a40
add rsp, 0xe0
pop rdi
ret
Function at 0x180018c60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x150]
call fcn.18001a120
mov rcx, qword [rsp + 0x150]
call fcn.18001a150
mov rax, qword [rsp + 0x150]
mov byte [rax + 0x7b70], 1
mov byte [0x180166561], 1
mov edx, 0x28
lea rcx, [rsp + 0x108]
call fcn.180004af0
lea rcx, [rsp + 0x108]
call fcn.1800176f0
nop
mov rax, qword [rsp + 0x150]
add rax, 0x7b90
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x40]
call fcn.18001d640
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0x5f5e0ff
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jge 0x180018df8
imul eax, dword [rsp + 0x3c], 0x3e8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x48], rax
lea rdx, [0x1801666c0]
mov rcx, qword [rsp + 0x48]
call fcn.1800030c0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x60], rax
lea rdx, [0x180166680]
mov rcx, qword [rsp + 0x60]
call fcn.1800030c0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov r9b, 1
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x150]
call fcn.18001b290
test eax, eax
jne 0x180018de9
mov rax, qword [rsp + 0x150]
mov byte [rax + 0x7b70], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x150]
lea r8, [0x180019e60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
jmp 0x180018df8
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x180018d0c
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jl 0x180018e7b
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.180018320
mov rcx, rax
call fcn.18000bb00
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1800030c0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.180004bc0
mov dl, 1
mov rcx, rax
call fcn.18004bfa0
nop
lea rcx, [rsp + 0x90]
call fcn.1800035f0
nop
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x108]
call fcn.180017f20
movzx eax, byte [rsp + 0x31]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x140
pop rdi
ret
Function at 0x180019170
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rcx, str.CACGameClient::Initialize
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBegin]
nop
lea rcx, [rsp + 0x118]
call fcn.18001beb0
nop
lea rcx, [rsp + 0x118]
call fcn.180004bc0
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.18001b170
nop
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
lea rdx, [0x1801666c0]
mov rcx, qword [rsp + 0x38]
call fcn.1800030c0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
lea rdx, [0x180166680]
mov rcx, qword [rsp + 0x50]
call fcn.1800030c0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x150]
call fcn.18001b290
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180019316
mov edx, 8
lea rcx, [rsp + 0x110]
call fcn.180004af0
lea rcx, [rsp + 0x110]
call fcn.180006bf0
nop
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
call fcn.180018380
mov rcx, rax
call fcn.180018110
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1800030c0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.180004bc0
mov r8d, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.180008d70
nop
lea rcx, [rsp + 0x80]
call fcn.1800035f0
nop
lea rcx, [rsp + 0x110]
call fcn.180002a10
mov dl, 1
mov rcx, rax
call fcn.18004bfa0
nop
lea rcx, [rsp + 0x110]
call fcn.180006e10
nop
jmp 0x18001936b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x150]
lea r8, [0x180019e60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x150]
lea r8, [0x18001ae00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
lea rcx, [rsp + 0x118]
call fcn.1800035f0
nop
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x140
pop rdi
ret
Function at 0x1800193f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.18001a120
nop
cmp dword [reloc.WS2_32.dll_accept], 1
jle 0x180019458
mov byte [0x180166528], 1
mov byte [0x180166529], 1
mov byte [0x18016652a], 1
mov byte [0x18016652b], 0
mov byte [0x18016652c], 1
mov byte [0x18016652d], 1
mov byte [0x18016652e], 1
mov byte [0x18016652f], 1
mov byte [0x180166530], 1
mov byte [0x180166531], 1
mov r8d, 0x40
lea rdx, [0x1801665b0]
mov rcx, qword [rsp + 0x58]
call fcn.18005ce80
mov r8d, 0x40
lea rdx, [0x1801665f0]
mov rcx, qword [rsp + 0x58]
call fcn.18005ce80
mov r8d, 0x40
lea rdx, [0x180166630]
mov rcx, qword [rsp + 0x58]
call fcn.18005ce80
mov byte [0x180166670], 1
mov rax, qword [0x180166558]
mov rax, qword [rax + 0x7b80]
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.180015c40
nop
movzx eax, byte [0x1801666ec]
test eax, eax
jne 0x1800194fc
mov byte [0x1801666ec], 1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180015000]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x48
ret
Function at 0x18001a1c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x3ce8
call fcn.180081b30
sub rsp, rax
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x3cd0], rax
mov rax, qword [rsp + 0x3d10]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 1
mov r8, qword [rsp + 0x3d10]
mov rdx, qword [rsp + 0x3d08]
lea rcx, [rsp + 0x88]
call fcn.180017630
nop
lea rcx, [rsp + 0x88]
call fcn.18001d1e0
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.180017b30
nop
lea rax, [rsp + 0xc4]
mov rdi, rax
xor eax, eax
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x88]
call fcn.180004bc0
lea rcx, [rsp + 0xc4]
mov rdi, rcx
mov rsi, rax
mov rcx, qword [rsp + 0x48]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
add rax, 0x14
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800edce0
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.18001b0f0
nop
cmp qword [rsp + 0x50], 0
je 0x18001a392
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x3d00]
add rax, 0x7820
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x3d00]
mov dword [rax + 0x7840], 1
mov rax, qword [rsp + 0x3d00]
add rax, 0x7820
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x3d00]
call fcn.180018c40
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x80]
mov r8d, 1
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x18001a387
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x3e5
je 0x18001a387
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x50]
call fcn.1800e7ec0
nop
lea rcx, [rsp + 0xb0]
call fcn.180017fc0
nop
cmp dword [rsp + 0x44], 0
je 0x18001a3ae
mov byte [rsp + 0x40], 1
jmp 0x18001a3b3
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x88]
call fcn.1800035f0
movzx eax, byte [rsp + 0x41]
mov rcx, qword [rsp + 0x3cd0]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x3ce8
pop rdi
pop rsi
ret
Function at 0x18001b290
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x198
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
mov cx, 0x102
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18001b3ca
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x18001b3ba
mov eax, 2
mov word [rsp + 0x48], ax
mov rcx, qword [rsp + 0x228]
call fcn.180004bc0
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x230]
call fcn.180004bc0
mov rcx, rax
call fcn.1800eeb9c
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18001b39f
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x220]
call fcn.18001b220
nop
jmp 0x18001b3b8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x30], 3
jmp 0x18001b3c8
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x30], 2
jmp 0x18001b3d2
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x228]
call fcn.1800035f0
nop
mov rcx, qword [rsp + 0x230]
call fcn.1800035f0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x210
pop rdi
ret
Function at 0x18001ba90
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x31]
call fcn.1800183b0
mov rcx, rax
call fcn.180018170
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800030c0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180004bc0
mov rdx, rax
lea rcx, [rsp + 0x128]
call fcn.180017ad0
nop
lea rcx, [rsp + 0x58]
call fcn.1800035f0
nop
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x12c], 0x104
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x32]
call fcn.1800184f0
mov rcx, rax
call fcn.180018150
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1800030c0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.180004bc0
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18001bba6
mov dword [rsp + 0x38], 1
jmp 0x18001bbae
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x33], al
lea rcx, [rsp + 0x78]
call fcn.1800035f0
movzx eax, byte [rsp + 0x33]
test eax, eax
je 0x18001bc4e
lea rax, [rsp + 0x12c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x130]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18001bc3f
cmp dword [rsp + 0x130], 1
jne 0x18001bc3f
lea rdx, [0x180122620]
lea rcx, [rsp + 0x140]
call fcn.18001d6b0
test eax, eax
jne 0x18001bc3f
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x3c], 1
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x3c], 0
je 0x18001bc5c
mov byte [rsp + 0x30], 1
jmp 0x18001bc61
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x34], al
lea rcx, [rsp + 0x128]
call fcn.1800036a0
movzx eax, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x260
pop rdi
ret
Function at 0x18001bca0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x130
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.180018350
mov rcx, rax
call fcn.180018190
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.1800030c0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.180004bc0
mov rdx, rax
lea rcx, [rsp + 0x118]
call fcn.180017ad0
nop
lea rcx, [rsp + 0x80]
call fcn.1800035f0
nop
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18001be87
movzx eax, byte [rsp + 0x140]
test eax, eax
jne 0x18001bdd0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x31]
call fcn.180018440
mov rcx, rax
call fcn.1800180d0
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800030c0
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x70]
call fcn.180004bc0
mov qword [rsp + 0x50], rax
jmp 0x18001bddc
lea rax, [0x180122618]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x34]
and eax, 1
test eax, eax
je 0x18001be04
and dword [rsp + 0x34], 0xfffffffe
lea rcx, [rsp + 0xa0]
call fcn.1800035f0
nop
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x18001be17
mov rax, qword [rsp + 0x40]
inc rax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x18001be78
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x18001be87
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x118]
call fcn.1800036a0
nop
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x130
pop rdi
ret

Function at 0x18002b6c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.18002b670
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x18002f1f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x18002f213
mov rcx, qword [rsp + 0x40]
call fcn.18003cca0
nop
jmp 0x18002f22b
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x18002f22b
mov rcx, qword [rsp + 0x40]
call fcn.18003caa0
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180030040
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180164280]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180030075
xor al, al
jmp 0x180030107
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x18003009c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x180030107
mov dword [rsp + 0x40], 1
mov eax, reloc.SHLWAPI.dll_SHCreateMemStream
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + rax + 0x44], rcx
mov eax, reloc.SHLWAPI.dll_SHCreateMemStream
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1800300fa
xor al, al
jmp 0x180030107
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180081a40
add rsp, 0x68
ret