Function at 0x140004e60
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, rcx
mov r15d, 1
lea rcx, str.LocalOpenVPN_GUI
mov edi, r15d
call fcn.140006890
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor r12d, r12d
test rbx, rbx
je 0x140004ed5
mov edx, 0xc8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
cmovne edi, r12d
lea rax, [0x140008c90]
mov dword [rbp + 0x120], r12d
mov qword [rbp + 0x128], rax
lea rcx, [rbp + 0x120]
lea rax, [0x1400081d0]
mov dword [rbp + 0x130], 4
mov qword [rbp + 0x138], rax
lea rax, [0x140008400]
mov qword [rbp + 0x148], rax
lea rax, [0x140008f60]
mov qword [rbp + 0x158], rax
lea rax, [0x140008820]
mov qword [rbp + 0x168], rax
lea rax, [0x1400101f0]
mov qword [rbp + 0x178], rax
lea rax, [fcn.140009420]
mov qword [rbp + 0x188], rax
lea rax, [0x140008650]
mov qword [rbp + 0x198], rax
lea rax, [0x140008800]
mov qword [rbp + 0x1a8], rax
lea rax, [0x140008080]
mov qword [rbp + 0x1b8], rax
lea rax, [0x140007fa0]
mov qword [rbp + 0x1c8], rax
lea rax, [0x140008210]
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x140], 5
mov dword [rbp + 0x150], 8
mov dword [rbp + 0x160], 6
mov dword [rbp + 0x170], 7
mov dword [rbp + 0x180], r15d
mov dword [rbp + 0x190], 9
mov dword [rbp + 0x1a0], 0xa
mov dword [rbp + 0x1b0], 3
mov dword [rbp + 0x1c0], 2
mov dword [rbp + 0x1d0], reloc.WS2_32.dll_inet_ntoa
mov dword [rbp + 0x1e0], r12d
mov qword [rbp + 0x1e8], r12
call fcn.1400055e0
lea rcx, [0x140022400]
call fcn.14000dfe0
mov rax, qword [0x140023540]
lea rcx, [0x1400195e8]
test edi, edi
mov qword [0x1400234f8], r14
cmovne rax, rbx
mov qword [0x140023540], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140005461
lea rcx, [0x1400195e8]
mov qword [rsp + 0x338], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.shell32.dll
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000544b
lea rdx, str.DllGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400050b2
xorps xmm0, xmm0
mov dword [rbp - 0x20], socket
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x1c], xmm0
call rax
test eax, eax
js 0x1400050b2
movzx ebx, word [rbp - 0x1c]
movzx eax, word [rbp - 0x18]
shl ebx, 0x10
or ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 0x50000
jb 0x14000544b
test edi, edi
je 0x140005417
call fcn.140011cb0
call fcn.1400115b0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [0x140022400]
call fcn.14000e040
lea rcx, [0x140022c7c]
call fcn.140006350
mov eax, dword [0x140023534]
cmp eax, 0x800d
je 0x14000512b
cmp eax, 0x8014
je 0x14000512b
test eax, eax
je 0x14000512b
lea rdx, str.Called_with___command_when_no_previous_instance_available
mov ecx, r15d
call fcn.140004430
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.1400075d0
test eax, eax
je 0x140005354
lea rcx, [0x140022ea4]
call fcn.140006350
test eax, eax
jne 0x14000516a
lea r8, [0x140022ea4]
mov ecx, 0x51d
lea rdx, str.log_dir
call fcn.140003f10
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x1400234c8], r12d
je 0x1400051fa
xor edx, edx
mov dword [rbp], 0x11c
mov r8d, 0x100
mov qword [rbp + 0xc], r12
lea rcx, [rbp + 0x14]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rbp + 0x116], r12w
mov r8b, 3
mov dword [rbp + 0x118], eax
xor ecx, ecx
lea edx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x23
mov dword [rbp + 4], 6
mov r8, rax
mov dword [rbp + 8], r15d
lea rcx, [rbp]
mov word [rbp + 0x114], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x140005203
call fcn.1400068e0
test eax, eax
jne 0x14000522d
xor edx, edx
lea rcx, [0x140023518]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
comisd xmm0, xmmword [str.ffffff]
jbe 0x14000522d
cmp dword [0x1400234c0], r12d
jne 0x14000522d
mov ecx, r15d
call fcn.140012be0
call fcn.14000c7f0
cmp dword [0x14002241c], r12d
mov ebx, r12d
jle 0x140005277
mov rdi, r12
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x140022400]
mov rcx, qword [rdi + rcx]
call fcn.14000df40
test rax, rax
je 0x14000533c
inc ebx
add rdi, 8
cmp ebx, dword [0x14002241c]
jl 0x140005250
call fcn.140010050
xor edx, edx
lea ecx, [rdx + 0xc]
call sub.libcrypto_1_1_x64.dll_OPENSSL_init_crypto
xor edx, edx
lea ecx, [rdx + 2]
call sub.libcrypto_1_1_x64.dll_OPENSSL_init_crypto
lea rax, [0x140004720]
mov qword [rsp + 0x78], r14
lea rbx, section..data
mov qword [rsp + 0x68], rax
mov ecx, 0x5a
mov qword [rbp - 0x60], rbx
mov dword [rsp + 0x64], 8
mov dword [rsp + 0x60], 0x50
call fcn.1400039c0
mov ecx, 0x5a
mov qword [rbp - 0x80], rax
call fcn.1400039c0
mov edx, 0x7f00
mov qword [rbp - 0x58], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x70], reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x14000535e
mov eax, r15d
mov rsi, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140016590
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rdx, qword [0x140022400]
mov ecx, 0x4d6
movsxd rax, ebx
mov rdx, qword [rdx + rax*8]
call fcn.140003f10
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x58], r12
lea r8, [0x140021018]
mov qword [rsp + 0x50], r14
mov r9d, 0xcf0000
mov qword [rsp + 0x48], r12
mov rdx, rbx
mov qword [rsp + 0x40], r12
xor ecx, ecx
mov dword [rsp + 0x38], 0xc8
mov dword [rsp + 0x30], 0xe6
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor r9d, r9d
lea rcx, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400053ea
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400053c0
mov rcx, qword [0x140023540]
call fcn.1400062e0
mov rcx, qword [0x140023548]
mov qword [0x140023540], r12
test rcx, rcx
je 0x14000540f
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [rbp - 0x40]
jmp 0x14000530d
call fcn.1400115b0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [0x140022400]
call fcn.14000e040
lea rcx, [0x140022c7c]
call fcn.140006350
call fcn.140004550
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, ebx
mov ecx, 0x517
call fcn.140003f10
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x516
call fcn.140003f10
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3