joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f2e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000f401
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000f401
test rax, rax
je 0x14000f401
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14000f363
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000f40c
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000f3ef
nop word [rax + rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000f3ef
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000f3c8
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000f3e4
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000f980
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000f380
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000f40c
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013f70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140011450
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1400114e3
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400114e3
cmp dword [rsp + 0x38], edi
je 0x1400114df
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400114c5
jmp 0x1400114e3
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x1400114f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140013f70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140011520
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.140011450
cmp eax, dword [rsp + 0x20]
jne 0x1400115ad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Pausing_to_allow_for_debugging
call fcn.14000a490
lea rdx, [0x14000a670]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Press_enter_to_close
call fcn.14000a490
lea rdx, [0x14000a670]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140013f70
add rsp, 0x38
ret
Function at 0x140013250
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov ebx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400132e2
test rbx, rbx
je 0x1400132a8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140013292
test eax, eax
jns 0x140013303
test rbx, rbx
je 0x140013308
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140013407
test rbx, rbx
jne 0x14001330f
xor eax, eax
jmp 0x140013407
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x1400133e7
nop dword [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140013365
lea rcx, [rsp + 0x28]
call fcn.14000cab0
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x140013385
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001341d
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400133dd
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400133d8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013466
call fcn.140013f90
inc edi
cmp edi, dword [rbx]
jb 0x140013330
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013f70
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140013472
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001346d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001346d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013f90
mov rax, rdi
jmp 0x1400133fa
Function at 0x140013854
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14001388e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140013893
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400138dc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400167c0]
cmp byte [rcx + rax], 0
je 0x1400138dc
dec r8
sub rdx, 1
jne 0x1400138c2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140014d80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014dca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014dca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014dca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014dca
cmp dword [rcx + 0x84], 0xe
jbe 0x140014dca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014dcc
xor al, al
add rsp, 0x28
ret
Function at 0x1400161e4
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400161ee
sub rsp, 0x28
mov dword [0x140088001], 0x4f
mov dword [0x140088001], 0x50
mov byte [rsp + 0x28], 0
mov dword [0x140088001], 0x52
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x14001637e
mov dword [0x140088001], 0x53
lea rax, [rsp + 0x38]
mov dword [0x140088001], 0x55
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and rax, rax
je 0x140016360
mov dword [0x140088001], 0x56
lea rax, [rsp + 0x40]
mov dword [0x140088001], 0x59
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x140088001], 0x5a
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x140088001], 0x5b
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x140088001], 0x5c
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x140088001], 0x5e
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x140088001], 0x5f
mov dword [0x140088001], 0x60
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x140088001], 0x61
mov dword [0x140088001], 0x62
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x1400163ab
add rsp, 0x68
pop r15
pop rbp
ret

Function at 0x1400171c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
mov dword [0x140088001], 0x100002b
mov dword [0x140088001], 0x100002c
push qword [rsp + 0x40]
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14001720f
mov dword [0x140088001], 0x100002d
mov rax, 1
jmp 0x140017226
mov dword [0x140088001], 0x100002e
mov dword [0x140088001], 0x100002f
xor rax, rax
add rsp, 0x30
pop r15
ret

Function at 0x14001c028
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400cd570]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001c082
mov r8, qword [0x1400881ae]
mov rcx, qword [0x1400cc720]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400cd570]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140014fc1
lea rcx, section..text
mov rdx, rbx
call fcn.14001c4b4
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14001c08c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cd570], eax
add rsp, 0x28
jmp fcn.14001c028
Function at 0x14001e3e8
Capabilities:
Get file size
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
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001e526
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001e4c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001f078
mov rsi, rax
test rax, rax
je 0x14001e51d
mov rcx, qword [0x1400cd660]
mov rdx, r13
call fcn.14003150c
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.14001f01c
mov rcx, rsi
mov rbx, rax
call fcn.14001eff4
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.14001ed50
mov qword [rbp], rax
test rax, rax
je 0x14001e4bd
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x14001e51d
mov rcx, rsi
call fcn.14001f030
jmp 0x14001e51d
mov rcx, qword [0x1400cc720]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001e51d
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001ed48
mov rcx, qword [0x1400cc720]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x14001e3e8
Function at 0x14001e544
Capabilities:
Get file size
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
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001e526
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001e4c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001f078
mov rsi, rax
test rax, rax
je 0x14001e51d
mov rcx, qword [0x1400cd660]
mov rdx, r13
call fcn.14003150c
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.14001f01c
mov rcx, rsi
mov rbx, rax
call fcn.14001eff4
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.14001ed50
mov qword [rbp], rax
test rax, rax
je 0x14001e4bd
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x14001e51d
mov rcx, rsi
call fcn.14001f030
jmp 0x14001e51d
mov rcx, qword [0x1400cc720]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001e51d
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001ed48
mov rcx, qword [0x1400cc720]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x14001e3e8
Function at 0x14001e8dc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14d, edx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [0x1400cd660]
mov edi, r8d
xor r12d, r12d
call fcn.1400315ac
mov rbx, rax
test rax, rax
je 0x14001e8c0
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r12
je 0x14001e7be
mov rcx, r13
call fcn.14001eed8
jmp 0x14001e73c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r12b
jne 0x14001e731
mov rcx, qword [rbx + 0x20]
call fcn.14001f054
mov esi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r14d
mov byte [rbx + 0x2c], sil
call fcn.14001e54c
lea r11, [rsp + 0x88]
lea r8, [0x14001e5f8]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], r12d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14001e799
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x14001e7a8
mov edx, edi
mov rcx, r13
call fcn.14001efec
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, esi
jmp 0x14001e86c
mov esi, 1
mov ebp, r12d
test sil, r14b
cmovne ebp, esi
test r14b, 2
je 0x14001e879
mov rcx, rax
call fcn.14001e8e8
lea rcx, [rbx + 8]
lea edx, [rsi + 0x1f]
call fcn.140031ee8
mov rcx, qword [0x1400cd778]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r12, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14001e8c0
mov rcx, qword [rsp + 0x30]
mov byte [r12 + 9], bpl
mov byte [r12 + 8], sil
mov qword [r12], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp edi, 0xffffffff
je 0x14001e856
mov r8, r12
mov edx, edi
mov rcx, r13
call fcn.14001ef08
jmp 0x14001e864
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x14001e8c0
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp edi, 0xffffffff
je 0x14001e89e
mov edx, edi
mov rcx, r13
call fcn.14001efec
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x14001e8c0
mov r12, rsi
mov byte [rbx + 0x2c], sil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
or r8d, 0xffffffff
xor edx, edx
jmp 0x14001e6d8
Function at 0x14001f2cc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001f343
movsxd rdx, ecx
lea rcx, [0x14001f228]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400cd670]
test rbx, rbx
je 0x14001f3b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001f339
cmp byte [rbx + 0x20], 0
je 0x14001f339
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14001f2ff
jmp 0x14001f3b6
mov rbx, qword [0x1400cd670]
test rbx, rbx
je 0x14001f3b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001f3ae
cmp byte [rbx + 0x21], 0
je 0x14001f372
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14001f39e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400cd670]
call fcn.140031f2c
mov rbx, rdi
test rdi, rdi
jne 0x14001f34f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140023328
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1400ce7d0]
call fcn.1400315ac
mov rsi, rax
test rax, rax
je 0x1400233a1
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140023366
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400233a1
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140032340
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.1400323f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140028624
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140028739
mov eax, dword [rsp + 0x30]
dec eax
je 0x140028716
dec eax
jne 0x140028739
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140028691
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14002870f
dec eax
je 0x140028708
dec eax
je 0x1400286de
dec eax
jne 0x140028739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400286d2
dec eax
je 0x1400286c6
dec eax
jne 0x140028739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140028739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140028739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140028739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140028701
dec eax
je 0x1400286fa
dec eax
jne 0x140028739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140028739
mov ebx, 0x3c
jmp 0x140028739
mov ebx, 0x32
jmp 0x140028739
mov ebx, 0x14
jmp 0x140028739
mov ebx, 5
jmp 0x140028739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140028734
cmp eax, 0xa
je 0x14002872d
cmp eax, 0x5a
jne 0x140028739
lea ebx, [rax - 0x32]
jmp 0x140028739
mov ebx, 0x1e
jmp 0x140028739
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret