Function at 0x1400289f0
Capabilities:
Convert ip address from string
Create thread
Hide graphical window
Initialize winsock library
Query environment variable
Set environment variable

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1400a31a0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13d, r9d
mov rbx, r8
mov r12, rcx
call fcn.1400099e0
mov rcx, rax
call fcn.140009aa0
xor esi, esi
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rsi
mov r8, 0xffffffffffffffff
mov word [rbp + 0x30], si
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], si
jne 0x140028a50
mov rdx, rbx
mov qword [rsp + 0x568], rdi
lea rcx, [rbp + 0x30]
call fcn.14002ae60
mov r9, qword [rbp + 0x40]
lea rcx, [rbp + 0x30]
mov r15, qword [rbp + 0x48]
lea rdx, str._esim
mov r14, qword [rbp + 0x30]
cmp r15, 8
mov eax, 5
mov qword [rbp + 0x58], r9
cmovae rcx, r14
mov qword [rbp + 0x50], rax
cmp r9, rax
mov r8, r9
cmova r8, rax
test r8, r8
je 0x140028ac6
nop dword [rax]
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x140028ad0
add rcx, 2
add rdx, 2
sub r8, 1
jne 0x140028ab0
cmp r9, 5
je 0x140028fd9
cmp dword [0x1400a3eb0], esi
je 0x140028fdf
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x208
call fcn.14004c400
mov r8d, 0x104
lea rdx, [rbp + 0x200]
lea rcx, str.notify_battery_status
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x140028c50
cmp eax, 0x104
je 0x140028c50
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x200]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14005bfe0
mov r8, rdi
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.14004c400
xor eax, eax
lea r8, [rbp + 0x200]
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], edi
lea r9d, [rax - 1]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rsi
call fcn.14005ce94
mov dword [0x1400aad58], eax
call fcn.1400099e0
mov rcx, rax
lea r9, str.GetEnvironmentVariable_g_nBatteryLess___d
mov eax, dword [0x1400aad58]
lea r8, str.wWinMain
mov edi, 2
mov dword [rsp + 0x20], eax
mov edx, edi
call fcn.14000a100
cmp dword [0x1400aad58], 0
jle 0x140028c19
lea rdx, [0x14008fbb4]
lea rcx, str.notify_battery_status
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.14005c03c
inc eax
mov dword [0x1400aad3c], eax
call fcn.1400099e0
mov rcx, rax
lea r9, str.GetEnvironmentVariable_g_battary_finish_exit_time___d
mov eax, dword [0x1400aad3c]
lea r8, str.wWinMain
mov edx, edi
mov dword [rsp + 0x20], eax
call fcn.14000a100
xor esi, esi
mov ecx, 0x202
mov qword [0x1400aad60], rsi
lea rdx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140028c78
xor r9d, r9d
lea r8, str.ERROR
lea rdx, str.WSAStartup__faild
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140028cb0
call fcn.1400099e0
mov edi, 2
mov dword [rsp + 0x20], ebx
mov edx, edi
lea r9, str.GetEnvironmentVariable_dwResult___d
mov rcx, rax
lea r8, str.wWinMain
call fcn.14000a100
jmp 0x140028c1b
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140028f24
xor r9d, r9d
lea r8, str.ERROR
lea rdx, str.socket_init_faild
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
mov r9d, 0x64
lea r8, [0x1400aae40]
mov rcx, r12
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea rbx, [0x1400aad70]
mov r8, rbx
mov rcx, r12
lea edx, [r9 + 9]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [0x1400293c0]
mov dword [rbp - 0x60], 0x50
mov edx, 0x6b
mov qword [rbp - 0x58], rax
mov rcx, r12
mov dword [rbp - 0x5c], recvfrom
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], r12
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp - 0x40], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [0x140090300]
mov edx, 0x6c
mov rcx, qword [rbp - 0x48]
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x20], rbx
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x18], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], rsi
mov r9d, 0x80880000
mov qword [rsp + 0x50], r12
xor r8d, r8d
mov qword [rsp + 0x48], rsi
mov rdx, rbx
mov qword [rsp + 0x40], rsi
mov ecx, 0x88
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x1c2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x80000000
mov qword [0x1400aad68], r12
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
test rax, rax
jne 0x140028ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400099e0
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.NULL__hWnd_error_code__d
mov edx, edi
lea r8, str.InitInstance
call fcn.14000a100
mov qword [0x1400aad60], rsi
call fcn.1400290c0
mov edx, r13d
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, 0x6d
mov rcx, r12
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ecx, 0x80000003
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea rax, [0x140028510]
mov qword [rbp - 0x68], 0
mov edx, edi
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_RegisterSuspendResumeNotification]
test rax, rax
jne 0x140028e5a
call fcn.1400099e0
mov rcx, rax
lea r9, str.RegisterSuspendResumeNotification_returned_error
lea r8, str.wWinMain
mov edx, edi
call fcn.14000a100
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140028eaf
mov rcx, qword [rbp - 0x10]
lea r8, [rbp - 0x10]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140028e99
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140028e70
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov ebx, dword [rbp]
cmp r15, 8
jb 0x140028ef8
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140028ef0
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400290a3
mov rcx, r14
call fcn.14002dc64
mov rdi, qword [rsp + 0x568]
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14002dc40
add rsp, 0x520
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
mov ecx, 0x4ee3
movups xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x20], di
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp + 0x24]
mov ecx, edi
lea rdx, str.127.0.0.1
mov word [rbp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, recvfrom
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140028f7f
xor r9d, r9d
lea r8, [0x14008d675]
lea rdx, str.socket_bind_faild
jmp 0x140028ca6
mov ecx, recvfrom
call fcn.14002df0c
mov ecx, recvfrom
mov rbx, rax
call fcn.14002df0c
lea rcx, [0x14002aa00]
mov r9, rax
lea r8, [0x14002b0d0]
xor edx, edx
mov qword [rax], rsi
lea rsi, [rbx + 8]
mov qword [rax + 8], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
call fcn.140051a4c
mov qword [rbx], rax
test rax, rax
je 0x140029083
jmp 0x140028cae
mov dword [0x1400a3eb0], esi
call fcn.140028300
movzx ebx, al
call fcn.1400099e0
mov edi, 2
mov dword [rsp + 0x20], ebx
mov edx, edi
lea r9, str.InitFileMapping_return__d
mov rcx, rax
lea r8, str.wWinMain
call fcn.14000a100
lea ecx, [rdi + 6]
call fcn.14002df0c
lea rcx, [0x1400285a0]
mov r9, rax
lea r8, [0x14002b0a0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call fcn.140051a4c
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140029094
cmp dword [rsp + 0x68], esi
je 0x1400290a9
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.14002d4e8
test eax, eax
jne 0x14002907b
xorps xmm0, xmm0
movaps xmmword [rbp - 0x80], xmm0
movdqa xmmword [rsp + 0x60], xmm0
jmp 0x140028cb0
mov ecx, eax
call fcn.14002cca4
int3
mov ecx, 6
mov dword [rsi], 0
call fcn.14002cce0
int3
mov ecx, 6
mov dword [rsp + 0x68], esi
call fcn.14002cce0
int3
call fcn.140056774
int3
mov ecx, 1
call fcn.14002cce0
int3