Function at 0x140130780
Capabilities:
Check mutex on windows
Create thread
Enumerate gui resources
Extract resource via kernel32 functions
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rbp + 0x38], rax
xor r15d, r15d
mov dword [rbp + 0x18], 1
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], r15
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x30]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
movdqa xmm0, xmmword [0x140493b60]
mov dword [rbp - 0x50], 0xa7c7da97
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov ecx, 0x29c
mov eax, dword [rcx + rdi]
mov ebx, 0x260
test al, 1
jne 0x140130842
or eax, 1
mov dword [rcx + rdi], eax
lea rcx, [rdi + rbx]
mov byte [rcx + 0x14], 1
lea rax, [rcx + 0x13]
lea rdx, [rbp - 0x4d]
cmp rcx, rdx
ja 0x14013082c
lea rdx, [rbp - 0x60]
cmp rax, rdx
jb 0x14013082c
movups xmmword [rcx], xmm0
mov eax, dword [rbp - 0x50]
mov dword [rcx + 0x10], eax
jmp 0x140130835
movups xmmword [rcx], xmm0
mov eax, dword [rbp - 0x50]
mov dword [rcx + 0x10], eax
lea rcx, [0x1403b9c10]
call fcn.14022ac54
nop
lea rdx, [rbx + rdi]
cmp byte [rdx + 0x14], 0
je 0x14013089f
xor byte [rdx], 0xe3
xor byte [rdx + 1], 0xb5
xor byte [rdx + 2], 0xb5
xor byte [rdx + 3], 0xa7
xor byte [rdx + 4], 0x5d
xor byte [rdx + 5], 0x67
xor byte [rdx + 6], 0xaf
xor byte [rdx + 7], 3
xor byte [rdx + 8], 0xe3
xor byte [rdx + 9], 0xb5
xor byte [rdx + 0xa], 0xb5
xor byte [rdx + 0xb], 0xa7
xor byte [rdx + 0xc], 0x5d
xor byte [rdx + 0xd], 0x67
xor byte [rdx + 0xe], 0xaf
xor byte [rdx + 0xf], 3
xor byte [rdx + 0x10], 0xe3
xor byte [rdx + 0x11], 0xb5
xor byte [rdx + 0x12], 0xb5
xor byte [rdx + 0x13], 0xa7
mov byte [rdx + 0x14], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1401308b5
lea rcx, [rbp - 0x48]
call fcn.140134da0
nop
lea rcx, [rbp - 0x48]
mov r8, qword [rbp - 0x38]
cmp qword [rbp - 0x30], 0xf
jbe 0x1401308e1
mov rdx, qword [rbp - 0x48]
add r8, rdx
jmp 0x1401308e8
add r8, rcx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x80]
call fcn.140133e30
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140130948
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130943
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130943
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
lea r8, str.DSTAC2024
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140130b84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8d, 5
lea rdx, str.Error
lea rcx, [rsp + 0x30]
call fcn.140134da0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov r8d, reloc.WS2_32.dll_getservbyname
lea rdx, str.Another_instance_of_the_application_is_already_running.
lea rcx, [rsp + 0x50]
call fcn.140134da0
nop
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0xf
jbe 0x1401309e9
mov rdx, qword [rsp + 0x50]
add r8, rdx
jmp 0x1401309f1
add r8, rcx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.140133e30
nop
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x40]
cmp qword [rsp + 0x48], 0xf
jbe 0x140130a17
mov rdx, qword [rsp + 0x30]
add r8, rdx
jmp 0x140130a1f
add r8, rcx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140133e30
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r8, qword [rbp - 0x80]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140130a93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130a8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130a8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x140130ae8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130ae2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130ae2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140130b28
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130b23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130b23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140130df7
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130b7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130b7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
jmp 0x140130df7
lea rdx, [0x1404c6550]
lea rcx, [rbp - 8]
call fcn.140131ec0
nop
lea rcx, [rbp - 8]
call fcn.14012b140
test al, al
jne 0x140130e60
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
mov r8d, 5
lea rdx, str.Error
lea rcx, [rsp + 0x30]
call fcn.140134da0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov r8d, 0x21
lea rdx, str.Jusu_aplikacija_yra_pasenusi.__2_
lea rcx, [rsp + 0x50]
call fcn.140134da0
nop
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0xf
jbe 0x140130c16
mov rdx, qword [rsp + 0x50]
add r8, rdx
jmp 0x140130c1e
add r8, rcx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.140133e30
nop
lea rcx, [rsp + 0x30]
mov r8, qword [rsp + 0x40]
cmp qword [rsp + 0x48], 0xf
jbe 0x140130c44
mov rdx, qword [rsp + 0x30]
add r8, rdx
jmp 0x140130c4c
add r8, rcx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140133e30
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r8, qword [rbp - 0x80]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140130cc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130cbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130cbb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x140130d15
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130d0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130d0f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140130d55
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130d50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130d50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140130da9
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130da3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130da3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140130de7
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130de2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130de2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140130e35
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140130e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140130e30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022ab78
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.14022a640
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, 0xa
xor ecx, ecx
lea r8d, [rdx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov ebx, edi
mov edx, edi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rsp + 0x70], r15
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov qword [rsp + 0x50], r15
mov rdi, qword [rsp + 0x70]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x140130f4b
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
mov r8d, 0xff000000
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x140130f4b
mov dword [rbx + 0x10], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140130f85
lea r8, [0x1404c64f0]
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetObjectW]
mov qword [0x1404c64d8], rbx
mov ecx, 8
call fcn.14022a8fc
lea rcx, [0x14012fba0]
mov qword [rax], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140136cc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140131141
cmp dword [rsp + 0x38], 0
je 0x140131135
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140131135
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
lea ecx, [rax + 8]
call fcn.14022a8fc
lea rcx, [0x14012fd90]
mov qword [rax], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140136cc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140131124
cmp dword [rsp + 0x38], 0
je 0x140131118
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140131118
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
nop dword [rax + rax]
mov rax, qword [0x1404c65f8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
lea rdx, [rsp + 0x50]
lea rcx, [0x14012cad0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x1404c65b0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
lea rcx, [0x14012cad0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x58], 0
jne 0x1401310d6
cmp qword [rsp + 0x38], 0
je 0x1401310eb
call fcn.14012d1c0
test al, al
je 0x1401310eb
lea rcx, [rsp + 0x78]
call fcn.14012d750
jmp 0x1401310f6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1404c64e0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140131080
lea edx, [rax + 8]
call fcn.14012cf00
jmp 0x140131080
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3