joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180014678
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.180013c3c
cmp rax, rbx
mov rdi, rax
je 0x1800146ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1800146a8
mov rcx, rdi
call fcn.180016464
mov ebx, eax
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800146c8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edi, eax
je 0x180014760
mov rcx, qword [0x1800266d0]
lea r8d, [rax + 0x1d]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180014760
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x18001474c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
lea r8d, [rsi + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x18001474c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x1800293d1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180014760
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180014774
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x2365
call fcn.1800146c8
test rax, rax
mov rbx, rax
je 0x1800147f6
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
xor edx, edx
mov rcx, rbx
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1800147e2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
xor eax, 0x2365
mov rcx, rbx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1800147e2
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x1800293d1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1800147f6
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1800148f0
Capabilities:
Allocate or change rwx memory

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
sub rsp, 0x20
and dword [rax + 0x18], 0
xor esi, esi
cmp byte [0x180026868], 6
mov rbp, rdx
mov rbx, rcx
mov edi, 8
ja 0x18001499c
test rcx, rcx
je 0x18001499c
mov rax, qword [rdx + 0x30]
movabs r13, 0x8000000000000000
test qword [rax + 8], r13
jne 0x180014943
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov esi, eax
je 0x18001499c
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rbx
test qword [rcx + 8], r13
jne 0x180014979
lea ecx, [rdi - 2]
mov byte [rcx + rbx], 0x7e
jmp 0x180014986
movabs rax, 0x4000000000000000
or qword [rbx], rax
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180014fa4
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, 0x40
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov r13, rcx
and qword [rax - 0x18], 0
lea r9, [rax - 0x18]
xor r8d, r8d
mov rdx, qword [rcx + 8]
mov rcx, rsi
call fcn.1800172dc
mov r12, rax
test rax, rax
je 0x180015165
and dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov edx, 4
lea r8d, [rdx + 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001515b
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.180014e80
mov ebx, eax
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x18001516e
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
call fcn.180014d24
mov rbx, rax
test rax, rax
je 0x1800150bc
lea r9, [rsp + 0x20]
mov edx, 0xe
lea r8d, [rdx + 0x32]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800150bc
and dword [rbx + 2], 0
mov rax, qword [rdi + 0x28]
mov qword [rbx + 6], rax
mov word [rbx], 0x25ff
mov qword [rdi + 0x28], rbx
mov qword [r13 + 0x18], rbx
mov r8d, dword [rsp + 0x20]
mov eax, 0x20
cmp r8d, 0x40
cmovne r8d, eax
mov dword [rsp + 0x20], r8d
lea r9, [rsp + 0x20]
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 + 0x24]
mov r8d, dword [rsp + 0x24]
mov edx, 4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [rdi + 0x38], 0x102
bt dword [rdi + 0x38], 9
jae 0x1800150fa
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call fcn.1800148f0
lea rcx, [0x180026ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180026ab0]
mov qword [rdi], r11
lea rax, [0x180026ab0]
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
mov qword [0x180026ab0], rdi
lea rcx, [0x180026ac0]
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 + 0x28], ebx
mov rcx, rsi
call fcn.180015a84
test rax, rax
je 0x18001516e
and dword [rax + 0x80], ebx
jmp 0x18001516e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18001516e
mov ebx, 2
mov dword [rsp + 0x28], ebx
jmp 0x180015172
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret
Function at 0x180015190
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.180014800
test eax, eax
mov ebx, eax
jne 0x180015295
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 0x180015277
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, [0x180026ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180026ab0]
lea rax, [0x180026ab0]
mov qword [rdi], r11
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
lea rcx, [0x180026ac0]
mov qword [0x180026ab0], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
xor ebx, ebx
mov qword [rsi + 0x20], r11
jmp 0x180015295
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
je 0x180015295
mov rcx, qword [0x1800266d0]
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 0x1800152a8
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 0x18001532b
sub eax, 1
je 0x1800152e5
cmp eax, 6
jne 0x1800153ee
jmp 0x180015387
mov rsi, qword [rcx + 0x28]
cmp word [rsi], 0x25ff
jne 0x18001532b
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 0x18001532b
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 0x18001537f
cmp r12d, 1
jne 0x18001535d
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
jmp 0x180015366
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 0x180015387
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
bt dword [rbx + 0x38], 9
jae 0x1800153e9
cmp qword [rbx + 0x40], 0
je 0x1800153e9
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 0x1800153e9
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 0x1800153f2
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 0x1800156f0
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 [0x180026a70]
lea rbp, [0x180026a70]
jmp 0x18001579e
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 0x180015762
lea rcx, [0x1800298ce]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18002a031]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001578c
mov rcx, rdi
call rax
jmp 0x18001578c
cmp qword [0x180026910], 0
je 0x18001578c
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov r8, rdi
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800266d0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rbx, rbp
jne 0x180015717
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180015928
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.180016274
cmp eax, ebx
jne 0x180015a6a
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.1800172dc
cmp rax, rbx
mov r11, rax
je 0x180015a56
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 0x1800159b0
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 0x1800159c2
add r8, 0x28
add r10w, 0xffff
je 0x180015a56
jmp 0x18001598e
mov edi, dword [r8 + 0x14]
sub edi, dword [r8 + 0xc]
add edi, r11d
je 0x180015a56
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]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x180015a56
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x180015a4d
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 0x180015a4d
cmp dword [rsp + 0x78], 4
jne 0x180015a4d
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 [0x1800266d0]
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 0x180016184
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rcx, qword [0x1800266d0]
and dword [rax + 0x20], 0
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]
test rax, rax
mov rbx, rax
je 0x180016258
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
or rcx, 0xffffffffffffffff
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
mov ebp, eax
je 0x180016222
mov eax, dword [rsp + 0x58]
cmp esi, eax
ja 0x180016226
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800266d0]
add esi, 0x1000
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x1800161ce
mov eax, dword [rsp + 0x58]
test rbx, rbx
je 0x180016258
test ebp, ebp
je 0x18001623e
shr eax, 3
mov qword [r13], rbx
xor edi, edi
mov dword [r12], eax
jmp 0x180016258
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x180016374
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.180016a98
cmp rax, r15
mov rbp, rax
je 0x180016444
cmp rsi, r15
je 0x1800163d1
xor edx, edx
mov rcx, rsi
call fcn.180016a98
cmp rax, r15
mov rbx, rax
je 0x180016432
mov r9d, 1
mov r8d, r13d
mov rdx, r14
mov rcx, r12
call fcn.180013f90
cmp eax, r15d
mov edi, eax
jne 0x18001641b
mov ecx, dword [rsp + 0x80]
lea rdx, [0x1800296a0]
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 0x180016432
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800266d0]
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 0x1800172dc
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 r13, rcx
xor r15d, r15d
cmp word [r10 + r13 + 4], 0x14c
lea rax, [r10 + rcx + 0x78]
lea rcx, [r10 + rcx + 0x88]
cmove rcx, rax
mov eax, dword [rcx]
test eax, eax
lea rdi, [r13 + rax]
je 0x18001741e
cmp dword [rcx + 4], r15d
je 0x18001741e
cmp dword [rdi + 0x1c], r15d
je 0x18001741e
mov r14d, dword [rdi + 0x14]
test r14d, r14d
je 0x18001741e
mov r12d, dword [rdi + 0x1c]
mov rbx, rdx
add r12, r13
test rdx, rdx
je 0x180017366
cmp rdx, 0xffff
jbe 0x18001736c
mov r14d, dword [rdi + 0x18]
xor ebx, ebx
cmp dword [rdi + 0x24], r15d
je 0x180017414
mov ebp, dword [rdi + 0x24]
mov esi, dword [rdi + 0x20]
and dword [rsp + 0x70], r15d
add rbp, r13
add rsi, r13
test r14d, r14d
je 0x18001741e
test rbx, rbx
je 0x1800173c3
mov ecx, dword [rdi + 0x10]
movzx eax, word [rbp]
add rcx, rax
cmp rbx, rcx
jne 0x1800173f7
movzx eax, word [rbp]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
lea r15, [r12 + rax*4]
je 0x18001741e
mov eax, dword [rsi]
add rax, r13
mov qword [rcx], rax
jmp 0x18001741e
mov ecx, dword [rsi]
add rcx, r13
test rdx, rdx
je 0x1800173d7
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x1800173f0
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [rsi]
add rcx, r13
mov edx, eax
call fcn.18001b764
cmp dword [rsp + 0x80], eax
je 0x1800173a4
mov rdx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
add rsi, 4
add rbp, 2
add eax, 1
cmp eax, r14d
mov dword [rsp + 0x70], eax
jae 0x18001741e
jmp 0x180017390
test rbx, rbx
je 0x18001741e
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 0x180017cf4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rcx, [0x1800298ce]
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 0x180017d39
bt dword [r8 + 0x24], 0x1f
jb 0x180017d3c
add r8, 0x28
add ecx, 0xffffffff
jne 0x180017d28
xor r8d, r8d
xor edi, edi
test r8, r8
je 0x180017e04
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, [0x180017cec]
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 0x180017e04
mov rax, qword [rbx]
cmp rax, rbx
jne 0x180017dfc
cmp rax, qword [rbx + 8]
jne 0x180017dfc
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, [0x180029b56]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180017de1
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 0x180017d98
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x180017e18
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 rdi, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x180017e79
lea rcx, [0x1800298ce]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18002a016]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180017ee0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call rax
test eax, eax
jne 0x180017ee0
jmp 0x180017ed7
cmp qword [0x180026910], 0
jne 0x180017e94
call fcn.180017cf4
test rax, rax
mov qword [0x180026910], rax
je 0x180017ee0
mov rcx, qword [0x1800266d0]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180017edb
mov rdx, qword [0x180026910]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rdi], rax
mov rcx, qword [rdx + 8]
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdx + 8], rax
xor ebx, ebx
jmp 0x180017ee0
mov ebx, 8
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180018090
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov esi, 8
mov rbp, rcx
lea edx, [rsi + 0x14]
call fcn.18001b764
mov rcx, qword [0x180026918]
lea r8, [rsp + 0x48]
mov edx, eax
call fcn.1800138b8
neg eax
sbb rbx, rbx
and rbx, qword [rsp + 0x48]
je 0x1800181fa
mov r12d, dword [rbx + 0x4a18]
test r12d, r12d
jne 0x180018141
mov r8d, dword [rbp]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rdi, rax
je 0x180018117
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 rcx, rbx
mov dword [rbx + 0x4a1c], 1
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]
cmp dword [rbx + 0x4a1c], 0
mov dword [rbx + 0x4a18], 1
je 0x1800181e3
movzx ecx, word [rbp + 0x20]
test cx, cx
je 0x18001818c
mov eax, dword [rbx + 8]
cmp eax, 0x2000
jae 0x18001818c
cmp cx, si
jne 0x18001817c
test eax, eax
je 0x180018188
add eax, 0xffffffff
mov dword [rbx + 8], eax
jmp 0x180018188
mov word [rbx + rax*2 + 0xa18], cx
add dword [rbx + 8], 1
xor esi, esi
jmp 0x180018191
mov esi, 0x6f
cmp qword [rbp + 0x22], 0
je 0x1800181e3
mov rcx, qword [0x1800266d0]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800181e3
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
and qword [rbp + 0x22], 0
mov rcx, qword [rdx + 8]
mov qword [rdi + 8], rcx
mov qword [rdi], rdx
mov qword [rcx], rdi
mov qword [rdx + 8], rdi
test r12d, r12d
je 0x1800181fa
mov rcx, qword [0x180026918]
lea r8, [rbx - 0x34]
xor edx, edx
call fcn.180013a40
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret