joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140144680
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0x120]
lea rax, [r11 - 0x80]
movdqa xmm1, xmmword [0x140293ac0]
xor r10d, r10d
mov rdi, qword [rsp + 0x130]
mov r9, rcx
mov rcx, qword [rsp + 0x128]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x138]
mov dword [rsp + 0x78], 0x30
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], r8d
lea r8, [r11 - 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov edx, 0x1fffff
movups xmmword [rsp + 0x68], xmm0
mov qword [r11 - 0x68], r10
mov dword [r11 - 0x58], r10d
mov qword [r11 - 0x60], r10
movdqu xmmword [r11 - 0x50], xmm0
mov qword [r11 - 0x40], 0x28
movdqu xmmword [r11 - 0x38], xmm1
mov qword [r11 - 0x20], r10
call qword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov ebx, eax
test eax, eax
js 0x14014478d
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x140144773
mov qword [rdi], rcx
jmp 0x14014477e
test rcx, rcx
je 0x14014477e
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
test rsi, rsi
je 0x14014478d
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401e5e40
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140144d60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword ss:[rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rdx
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x140144dc2
test rbx, rbx
je 0x140144db7
mov rax, qword [rsp + 0x40]
mov qword [rbx], rax
mov rax, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140149be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor eax, eax
mov r8, rcx
test rdx, rdx
je 0x140149c06
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
xor eax, ecx
imul eax, eax, 0x1000193
sub rdx, 1
jne 0x140149bf0
ret
Function at 0x140149c20
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
xor ebx, ebx
test r8, r8
jne 0x140149c38
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov rsi, r8
shr rsi, 1
mov qword [rsp + 0x38], rdi
mov rdi, qword [rcx + 8]
test dl, dl
je 0x140149c90
test rsi, rsi
je 0x140149ca6
nop word [rax + rax]
movzx ecx, word [rdi]
lea rdi, [rdi + 2]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx eax, ax
xor eax, ebx
imul ebx, eax, 0x1000193
sub rsi, 1
jne 0x140149c60
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
movzx eax, byte ds:[rdi]
lea rdi, [rdi + 1]
xor ebx, eax
imul ebx, ebx, 0x1000193
sub r8, 1
jne 0x140149c90
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140149cc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r10, rcx
test r8d, r8d
je 0x140149d4a
sub r8d, 1
je 0x140149d4a
cmp r8d, 1
jne 0x140149ce5
mov rcx, qword ds:[rcx]
xor r9d, r9d
test rcx, rcx
jne 0x140149ce8
xor eax, eax
ret
mov rax, qword [r10 + 8]
shr rcx, 1
lea r10, [rax + rcx*2]
test dl, dl
je 0x140149d2b
cmp rax, r10
je 0x140149d46
nop dword [rax]
movzx r8d, word [rax]
lea ecx, [r8 - 0x61]
cmp cx, 0x19
lea edx, [r8 - 0x20]
cmova edx, r8d
imul r9d, r9d, 0x1003f
add rax, 2
add r9d, edx
cmp rax, r10
jne 0x140149d00
mov eax, r9d
ret
cmp rax, r10
je 0x140149d46
movzx ecx, word [rax]
add rax, 2
imul r9d, r9d, 0x1003f
add r9d, ecx
cmp rax, r10
jne 0x140149d30
mov eax, r9d
ret
jmp sym.SystemInformer.exe_Ordinal_1393
Function at 0x14014b720
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1402bbf68], 0xffffffff
jae 0x14014b8bb
mov rbx, qword gs:[0x30]
mov rax, qword gs:[0x30]
mov rsi, qword [rbx + 0x60]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rcx, qword [rsi + 0x78]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14014b829
nop dword [rax]
cmp qword [rbx + 0x1780], 0
jne 0x14014b866
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, 0x2000
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword ds:[rbx + 0x1780], rax
test rax, rax
je 0x14014b8bb
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rcx, qword [rsi + 0x78]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp eax, 0xffffffff
je 0x14014b790
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, edi
mov qword [rbx + rax*8 + 0x1480], 0
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 0x238]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov rcx, qword gs:[0x30]
mov edi, eax
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp edi, 0xffffffff
je 0x14014b8bb
mov rcx, qword [rbx + 0x1780]
lea eax, [rdi + 0x40]
mov qword [rcx + rdi*8], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14014b8e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1402bbf68], 0xffffffff
jae 0x14014b90c
cmp ecx, 0x40
jae 0x14014b90c
mov r8, qword gs:[0x30]
mov eax, ecx
mov qword [r8 + rax*8 + 0x1480], rdx
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14014b905
cmp dword [0x1402bbf68], 0xffffffff
jae 0x14014b936
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_Ordinal_1343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x28
jmp sym.SystemInformer.exe_Ordinal_1343
Function at 0x140151d00
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, r8
mov ebx, edx
mov r14, rcx
test dl, 1
je 0x140151dd1
test bl, 2
je 0x140151d57
mov r8d, 0x20
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
test rdi, rdi
je 0x140151dca
xor edx, edx
mov qword [rdi], rdx
jmp 0x140151ea0
mov rdx, qword [0x1402c5ff0]
mov ecx, 0x212
call sym.SystemInformer.exe_Ordinal_1240
xor edx, edx
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], 0x200
mov qword [rax + 8], rcx
mov word [rcx + 0x200], dx
mov rcx, r14
mov r8d, dword [rax]
mov rdx, qword [rax + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rdi, rdi
je 0x140151db2
mov qword [rdi], rbx
mov eax, esi
jmp 0x140151ea0
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140151dca
call fcn.140143da0
mov eax, esi
jmp 0x140151ea0
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test eax, eax
je 0x140151e89
test bl, 2
jne 0x140151e89
mov rdx, qword [0x1402c5ff0]
mov ebx, ebp
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
xor edx, edx
mov rsi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], dx
mov rcx, r14
mov r8d, dword [rax]
mov rdx, qword [rax + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x140151e59
test rdi, rdi
je 0x140151e3f
mov qword [rdi], rsi
jmp 0x140151e96
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140151e96
call fcn.140143da0
jmp 0x140151e96
test rdi, rdi
je 0x140151e68
nop
call sym.SystemInformer.exe_Ordinal_1430
mov qword [rdi], rax
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140151e85
nop dword [rax + rax]
call fcn.140143da0
xor eax, eax
jmp 0x140151e98
test rdi, rdi
je 0x140151e96
call sym.SystemInformer.exe_Ordinal_1430
mov qword [rdi], rax
mov eax, ebp
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e5e40
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140152bc0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov ecx, 2
add rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, qword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
call fcn.14020c7e0
mov rcx, qword [rdi]
xor eax, eax
mov word [rbx + rcx], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140152c53
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140152c53
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140152c53
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140152c5c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140152d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, qword [rsp + 0xc0]
mov rsi, r9
mov rdi, r8
mov qword [rsp + 0x50], rdx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x48], 5
mov r8d, 3
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
mov rbx, rcx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140152dd4
lfence
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140152dd4
mov rdx, qword [rsp + 0x40]
mov r9, rsi
mov r8, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x140152dd6
xor eax, eax
mov rcx, qword ds:[rsp + 0x60]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140152e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, qword [rsp + 0xc0]
mov rsi, r9
mov rdi, r8
mov qword [rsp + 0x50], rdx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x48], 5
mov r8d, 3
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
mov rbx, rcx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140152eb4
lfence
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140152eb4
mov rdx, qword [rsp + 0x40]
mov r9, rsi
mov r8, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
jmp 0x140152ebb
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140153ce0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x18], rax
mov rbx, rdx
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], rcx
mov byte [rbp - 0x37], 1
movups xmmword [rbp - 0x50], xmm0
test rdx, rdx
je 0x140153d1a
mov rcx, rdx
mov qword [rbp + 0x18], rdx
jmp 0x140153d69
cmp dword [0x1402c8fac], 3
mov edx, 0x1000
mov qword [rbp - 0x60], rcx
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x58], rax
jge 0x140153d5b
lea r9, [rbp - 0x60]
mov dword [rbp - 0x30], 0x30
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x18], eax
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
jmp 0x140153d65
lea r8, ds:[rbp - 0x60]
call fcn.140178dc0
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140153d7f
cmp dword [0x1402bbf68], 0x3e
jb 0x140153d7f
call fcn.1401541e0
mov byte [rbp - 0x38], al
lea rdx, [rbp - 0x50]
lea rcx, [0x140153c00]
call qword [sym.imp.USER32.dll_EnumWindows]
test rbx, rbx
jne 0x140153da6
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140153da6
nop
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x50]
test rcx, rcx
mov rbx, qword [rsp + 0xa0]
cmovne rax, rcx
add rsp, 0x80
pop rbp
ret

Function at 0x1401556c0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x38
xor r9d, r9d
test cl, 1
je 0x1401556d5
lfence
mov r9d, 4
test cl, 2
je 0x1401556e1
lfence
or r9d, 8
test cl, 4
je 0x1401556ed
lfence
or r9d, 0x40
test cl, 8
je 0x1401556fa
lfence
bts r9d, 9
test cl, 0x10
je 0x140155707
lfence
bts r9d, 0xa
test cl, cl
jns 0x140155713
lfence
bts r9d, 0x13
or r9d, 1
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
add rsp, 0x38
ret
Function at 0x140155740
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rbp + 0xf], rax
movaps xmm0, xmmword [rdx]
mov r14d, r8d
mov r15, qword [rbp + 0x7f]
mov rsi, rcx
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
test r9, r9
je 0x140155798
mov rbx, qword [0x7ffe0014]
mov rdi, rbx
sub rdi, qword [r9]
jmp 0x1401557db
cmp qword [0x1402c9258], 0
jne 0x1401557c9
xor r9d, r9d
lea rdx, [rbp - 0x21]
mov r8d, 0x30
mov ecx, 3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1401557c9
mov rax, qword [rbp - 0x21]
mov qword [0x1402c9258], rax
mov rbx, qword [0x7ffe0014]
mov rdi, rbx
sub rdi, qword [0x1402c9258]
sub rbx, qword [r15]
xorps xmm1, xmm1
movss xmm6, dword [0x140293a28]
xorps xmm0, xmm0
cvtsi2ss xmm0, rdi
cvtsi2ss xmm1, rbx
divss xmm1, xmm0
movss xmm0, dword [0x1402939d8]
mulss xmm1, dword [0x140293a28]
minss xmm6, xmm1
comiss xmm0, xmm6
jbe 0x140155816
xorps xmm6, xmm6
mov r8, qword [0x1402c6170]
lea rdx, [rbp - 0x41]
mov rcx, rsi
and r14d, 2
jne 0x140155830
mov r8d, 6
call qword [sym.imp.USER32.dll_FillRect]
inc dword [rbp - 0x41]
lea rdx, [rbp - 0x41]
inc dword [rbp - 0x3d]
mov rcx, rsi
dec dword [rbp - 0x39]
inc dword [rbp - 0x31]
inc dword [rbp - 0x2d]
dec dword [rbp - 0x29]
test r14d, r14d
je 0x14015587a
mov r8, qword [0x1402c6170]
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_FillRect]
mov rcx, rsi
mov edx, 0x808080
cmp rbx, rdi
jg 0x140155898
mov edx, 0x878200
jmp 0x140155898
mov r8d, 0x10
call qword [sym.imp.USER32.dll_FillRect]
mov rcx, rsi
mov edx, 0x808080
cmp rbx, rdi
jg 0x140155898
mov edx, 0x9eca9e
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov rax, qword [0x1402c9330]
test rax, rax
jne 0x1401558bc
mov ecx, 0x12
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [0x1402c9330], rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9d, dword ds:[rbp - 0x39]
mov rcx, rsi
mov eax, dword [rbp - 0x41]
divss xmm6, dword [0x140293a28]
mov r8d, dword [rbp - 0x3d]
sub eax, r9d
mov dword [rsp + 0x28], 0xf00021
movd xmm1, eax
mov eax, dword [rbp - 0x35]
cvtdq2ps xmm1, xmm1
movd xmm0, r9d
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm6
addss xmm1, xmm0
cvttss2si edx, xmm1
cmp edx, dword [rbp - 0x31]
cmovl edx, dword [rbp - 0x31]
sub eax, r8d
sub r9d, edx
mov dword [rsp + 0x20], eax
mov dword [rbp - 0x41], edx
call qword [sym.imp.GDI32.dll_PatBlt]
mov rax, qword [0x1402c92b0]
test rax, rax
jne 0x140155944
mov ecx, 2
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [0x1402c92b0], rax
mov r8, rax
lea rdx, [rbp - 0x31]
mov rcx, rsi
call qword [sym.imp.USER32.dll_FrameRect]
mov rcx, qword ds:[rbp + 0xf]
xor rcx, rsp
call fcn.1401e5e40
mov rbx, qword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140156d20
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x70
mov esi, dword [rsp + 0xa8]
mov r14, rcx
xor ebp, ebp
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rbp
lea eax, [rsi*8]
not eax
and eax, 0x20
or eax, 0x40
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r9d
xor r9d, r9d
mov dword [rsp + 0x20], 0x80
call sym.SystemInformer.exe_Ordinal_1469
test eax, eax
jns 0x140156d93
lfence
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test byte [0x1402c1480], 1
jne 0x140156dc8
lock bts qword [0x1402c1480], 0x1f
setb al
test al, al
je 0x140156e9d
test byte [0x1402c1480], 1
jne 0x140156dc8
xor edx, edx
lea rcx, [0x1402c1480]
call sym.SystemInformer.exe_Ordinal_1388
mov rdx, qword [0x1402c6190]
mov ecx, 0x30
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
call sym.SystemInformer.exe_Ordinal_1240
mov rcx, qword ds:[rsp + 0x50]
mov rbx, rax
mov qword [rax], rcx
mov ecx, esi
shl ecx, 0xb
mov dword [rax + 8], esi
not ecx
and ecx, 0x1000
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov dword [rax + 0x20], ecx
mov qword [rax + 0x24], rbp
mov dword [rax + 0x2c], ebp
bt esi, 0x10
jae 0x140156f31
mov rcx, qword [rax]
lea rdx, [rax + 0x10]
call sym.SystemInformer.exe_Ordinal_1511
test eax, eax
js 0x140156e79
test byte [rbx + 8], 8
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x10], rax
jne 0x140156f31
lfence
mov rcx, qword [rbx]
lea r8, [rsp + 0x50]
mov r9d, 8
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x140156f31
lfence
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140156f37
call fcn.140143da0
jmp 0x140156f37
mov rdx, qword [0x1402c5fd0]
mov ecx, 0x40
call sym.SystemInformer.exe_Ordinal_1240
mov ecx, 1
mov r8, rax
mov word [rax], cx
lock xadd dword [0x1402c5f98], ecx
mov dword [rax + 4], ebp
movzx ecx, cl
mov byte [rax + 2], cl
lea rax, [0x1401570a0]
mov qword [r8 + 8], rax
lea rax, [0x14028bf70]
mov qword [r8 + 0x10], rax
lea rax, [0x1402ca480]
mov qword [rax + rcx*8], r8
lea rax, [r8 + 0x20]
test al, 0xf
jne 0x140156f25
xorps xmm0, xmm0
mov qword [0x1402c6190], r8
movaps xmmword [rax], xmm0
lea rcx, [0x1402c1480]
mov dword [rax + 0x10], ebp
mov dword [rax + 0x14], 0x10
mov qword [rax + 0x18], 0x40
call sym.SystemInformer.exe_Ordinal_1386
nop
jmp 0x140156dc8
mov ecx, 0x80000002
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
lfence
mov qword [r14], rbx
mov rbx, qword [rsp + 0x80]
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x20]
xor eax, eax
mov rsi, qword [r11 + 0x28]
mov rdi, qword [rsp + 0x88]
mov rsp, r11
pop r14
ret
Function at 0x140157140
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
test byte [rcx + 8], 0xc
mov rbx, rcx
jne 0x140157197
mov rcx, qword [rcx]
lea r8, [rsp + 0x50]
mov r9d, 8
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x140157180
lfence
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rax, qword [rsp + 0x50]
cmp qword [rbx + 0x10], rax
je 0x140157197
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1401571a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
lea r9, [rsp + 0x48]
mov rbx, rcx
mov dword [rsp + 0x28], 4
xor edi, edi
mov qword [rsp + 0x48], rax
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
mov eax, 0xc0000017
js 0x140157209
mov rcx, qword [rsp + 0x40]
test rcx, rcx
mov qword [rbx + 0x18], rcx
cmovne eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140157220
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
test byte [rcx + 8], 8
lea rax, [rcx + 0x10]
mov rsi, rcx
mov rdi, r9
mov ecx, 0
cmove rax, rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov rcx, qword [rsi]
lea rax, [r11 - 0x18]
mov dword [r11 - 0x38], r8d
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14015728e
mov rcx, qword ds:[rsi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x1401572a7
mov eax, dword [rsp + 0x50]
test eax, eax
js 0x1401572a7
mov rcx, qword ds:[rsp + 0x58]
add qword [rsi + 0x10], rcx
test rdi, rdi
je 0x1401572a7
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret