Function at 0x180006340
Capabilities:
Accept command line arguments
Create process on windows
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov rax, qword [0x18009d0c0]
xor rax, rsp
mov qword [rbp + 0x500], rax
test edx, edx
je 0x1800068b6
cmp edx, 1
jne 0x1800068bc
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdx, str.en_US
xor ecx, ecx
call fcn.18004433c
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x180006437
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x70]
mov rcx, rbx
and edx, 0xffffffbf
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 1
call fcn.1800444a8
mov r9, rax
lea r8, [0x180091d98]
lea rdx, str.CONOUT_
lea rcx, [0x1800a0bd0]
call fcn.180044670
mov ecx, 2
call fcn.1800444a8
mov r9, rax
lea r8, [0x180091d98]
lea rdx, str.CONOUT_
lea rcx, [0x1800a0bd8]
call fcn.180044670
xorps xmm0, xmm0
lea rdx, str.maple2.ini
xorps xmm1, xmm1
lea rcx, [rsp + 0x50]
mov r8d, 0xa
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
call fcn.180004c00
lea rcx, [rsp + 0x50]
call fcn.180008000
mov rdx, qword [rsp + 0x68]
movzx ebx, al
cmp rdx, 0xf
jbe 0x1800064a9
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800064a4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800068e5
call fcn.18003a060
test bl, bl
jne 0x1800064e4
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 9
call qword [sym.imp.USER32.dll_ShowWindow]
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_load_config.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1800068c1
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
lea rdx, str.nxapp
call fcn.18003c0b0
test rax, rax
jne 0x180006651
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, word [0x1800a0bc4]
mov edx, 0x400
cmp ax, dx
jae 0x180006586
lea rdx, str.Unsupported_port:
lea rcx, [0x18009f170]
call fcn.180004550
movzx edx, word [0x1800a0bc4]
mov rcx, rax
call fcn.180007850
mov rcx, rax
call fcn.180004800
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 9
call qword [sym.imp.USER32.dll_ShowWindow]
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_redirect_process.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1800068c1
cmp qword [0x18009dd48], 0xf
lea rcx, [0x18009dd30]
lea r9, [rbp - 0x10]
cmova rcx, qword [0x18009dd30]
lea r8, str.__s___d___nxappnxl___lc_s
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x100]
mov dword [rsp + 0x20], eax
call fcn.180006900
lea rdx, [rbp + 0x100]
lea rcx, [0x18009f170]
call fcn.180004550
mov rcx, rax
call fcn.180004800
xorps xmm1, xmm1
lea rdx, [rbp + 0x100]
xor eax, eax
lea rcx, [rbp - 0x10]
xor ebx, ebx
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x20], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1800068eb
jmp 0x18000654f
cmp qword [0x18009dd68], 0xf
lea rcx, [0x18009dd50]
cmova rcx, qword [0x18009dd50]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 9
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword gs:[0x58]
xor ebx, ebx
mov ecx, dword [0x18009fe30]
mov edx, 4
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov eax, dword [rsi]
cmp dword [0x1800a0d50], eax
jle 0x1800066f7
lea rcx, [0x1800a0d50]
call fcn.18003a0d4
cmp dword [0x1800a0d50], 0xffffffff
jne 0x1800066f7
lea rcx, str.MSWSOCK
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1800066d4
mov eax, ebx
jmp 0x1800066e4
lea rdx, str.WSPStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1800a0d50]
mov qword [0x1800a0d48], rax
call fcn.18003a068
call fcn.180012620
test eax, eax
jne 0x180006896
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180012b50
test eax, eax
jne 0x180006891
lea rdx, [0x18000f8a0]
lea rcx, [0x1800a0d48]
call fcn.180011e50
test eax, eax
jne 0x180006891
call fcn.1800126a0
test eax, eax
jne 0x180006891
mov eax, dword [rsi]
cmp dword [0x1800a0d60], eax
mov qword [rsp + 0x628], rdi
jle 0x180006783
lea rcx, [0x1800a0d60]
call fcn.18003a0d4
cmp dword [0x1800a0d60], 0xffffffff
jne 0x180006783
mov rax, qword [sym.imp.USER32.dll_CreateWindowExA]
lea rcx, [0x1800a0d60]
mov qword [0x1800a0d58], rax
call fcn.18003a068
call fcn.180012620
test eax, eax
jne 0x1800067c8
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180012b50
test eax, eax
jne 0x1800067c3
lea rdx, [0x1800103c0]
lea rcx, [0x1800a0d58]
call fcn.180011e50
test eax, eax
jne 0x1800067c3
call fcn.1800126a0
test eax, eax
jne 0x1800067c3
lea edi, [rax + 1]
jmp 0x1800067ca
call fcn.1800124d0
mov edi, ebx
mov eax, dword [rsi]
cmp dword [0x1800a0d64], eax
jle 0x180006803
lea rcx, [0x1800a0d64]
call fcn.18003a0d4
cmp dword [0x1800a0d64], 0xffffffff
jne 0x180006803
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
lea rcx, [0x1800a0d64]
mov qword [0x1800a0d68], rax
call fcn.18003a068
call fcn.180012620
test eax, eax
jne 0x180006848
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180012b50
test eax, eax
jne 0x180006843
lea rdx, [0x180010660]
lea rcx, [0x1800a0d68]
call fcn.180011e50
test eax, eax
jne 0x180006843
call fcn.1800126a0
test eax, eax
jne 0x180006843
lea ebx, [rax + 1]
jmp 0x180006848
call fcn.1800124d0
test edi, ebx
mov rdi, qword [rsp + 0x628]
jne 0x180006874
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_hook_window.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1800068c1
lea rdx, str.Successfully_hooked_all_functions.
lea rcx, [0x18009f170]
call fcn.180004550
mov rcx, rax
call fcn.180004800
jmp 0x1800068bc
call fcn.1800124d0
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_hook_winsock.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1800068c1
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 1
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.18003a040
lea r11, [rsp + 0x610]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.180043fe8
int3
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.180044948
int3