Function at 0x140040dd0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14022b2b0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x18], rdx
movdqa xmm0, xmmword [0x14020a300]
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x14020a230]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x20], 0x100
xor r12d, r12d
mov eax, r12d
nop word [rax + rax]
xor byte [rbp + rax - 0x40], al
inc rax
cmp rax, 0x20
jb 0x140040e30
mov byte [rbp - 0x1f], r12b
lea rcx, [rbp - 0x40]
mov rsi, 0xffffffffffffffff
mov rax, rsi
nop
inc rax
cmp byte [rcx + rax], r12b
jne 0x140040e50
mov r8, qword [rdx + 0x10]
mov rcx, rdi
cmp qword [rdx + 0x18], 0x10
jb 0x140040e6a
mov rcx, qword [rdx]
cmp r8, rax
jne 0x140040e8c
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140040e8c
lea r8d, [rax + 0xe]
lea rdx, str.Medicine_Chest
jmp 0x14004102a
movdqa xmm0, xmmword [0x14020a300]
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0x7c667251
mov dword [rbp - 0x2c], 0x78514a66
mov dword [rbp - 0x28], 0x58457d74
mov word [rbp - 0x24], 0x100
mov rax, r12
nop word [rax + rax]
xor byte [rbp + rax - 0x40], al
inc rax
cmp rax, 0x1c
jb 0x140040ec0
mov byte [rbp - 0x23], r12b
mov r14, qword [rdi + 0x10]
lea rcx, [rbp - 0x40]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140040ee0
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140040ef6
mov rcx, qword [rdi]
cmp r14, rax
jne 0x140040f1b
mov r8, r14
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140040f1b
lea r8d, [rax + 0xa]
lea rdx, str.Gold_Chest
jmp 0x14004102a
movdqa xmm0, xmmword [0x14020a300]
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0x7c667251
mov dword [rbp - 0x2c], 0x72414a66
mov dword [rbp - 0x28], 0x75756979
mov dword [rbp - 0x24], 0x1005e43
mov rax, r12
nop word [rax + rax]
xor byte [rbp + rax - 0x40], al
inc rax
cmp rax, 0x1e
jb 0x140040f50
mov byte [rbp - 0x21], r12b
lea rcx, [rbp - 0x40]
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], r12b
jne 0x140040f70
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140040f86
mov rcx, qword [rdi]
cmp r14, rax
jne 0x140040fa7
mov r8, r14
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140040fa7
lea rdx, str.Weapon_Chest
jmp 0x140041024
movdqa xmm0, xmmword [0x14020a320]
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x14020a220]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x20], 0x100
mov rax, r12
nop word [rax + rax]
xor byte [rbp + rax - 0x40], al
inc rax
cmp rax, 0x20
jb 0x140040fd0
mov byte [rbp - 0x1f], r12b
lea rax, [rbp - 0x40]
inc rsi
cmp byte [rax + rsi], r12b
jne 0x140040fe5
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140040ffb
mov rcx, qword [rdi]
cmp r14, rsi
jne 0x14004101d
mov r8, r14
lea rdx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004101d
lea r8d, [rax + 7]
lea rdx, str.MainPoi
jmp 0x14004102a
lea rdx, str.Unknow_Chest
mov r8d, recv
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r12b
mov rcx, rbx
call fcn.14000b840
nop
mov rcx, rdi
call fcn.14000b7e0
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140154010
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret