Function at 0x18000a4e0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rax + 0x10], rbp
mov rbp, qword [0x1800cfe40]
mov qword [rax + 0x18], r12
mov rbx, rbp
mov qword [rax - 0x20], r14
movaps xmmword [rax - 0x38], xmm6
mov esi, dword [rbp + 0x60e0]
sub esi, 1
movaps xmmword [rax - 0x48], xmm7
js 0x18000a572
movsxd rdi, esi
shl rdi, 5
nop word [rax + rax]
mov rax, qword [rbp + 0x60e8]
cmp dword [rdi + rax + 4], 7
jne 0x18000a569
movsxd r8, dword [rbp + 0x60e0]
mov rcx, rax
mov rdx, rdi
sub rdx, rax
add rdx, rax
sar rdx, 5
sub r8, rdx
mov rax, rdx
shl rax, 5
add rcx, rax
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call sub.VCRUNTIME140.dll_memmove
dec dword [rbp + 0x60e0]
sub rdi, 0x20
sub esi, 1
jns 0x18000a520
mov rdi, qword [rbp + 0x60e8]
movsxd rsi, dword [rbp + 0x60e0]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x18000a5af
nop dword [rax]
cmp dword [rdi + 4], 0
jne 0x18000a59f
mov rdx, rdi
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_recv]
add rdi, 0x20
cmp rdi, rsi
jne 0x18000a590
mov rbp, qword [0x1800cfe40]
cmp byte [rbp + 0x6098], 0
mov r12d, 1
jne 0x18000a6ac
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x18000a6a5
lea rdx, [0x1800b3b70]
call fcn.180005a40
mov rdi, rax
test rax, rax
je 0x18000a6a5
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x18000a69c
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000a69c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18000a69c
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000a69c
cmp rsi, 0xffffffffffffffff
je 0x18000a69c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x18000a69c
mov r9, rdi
mov r8, rsi
mov edx, r12d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x18000a67b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000a6a5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x18000a691
mov rdx, rsi
mov rcx, r14
call fcn.180019de0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000a6a5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbp + 0x6098], r12b
movss xmm0, dword [rbp + 0x609c]
xorps xmm6, xmm6
xor edi, edi
comiss xmm0, xmm6
jbe 0x18000a6ed
subss xmm0, dword [rbp + 0x18]
comiss xmm6, xmm0
movss dword [rbp + 0x609c], xmm0
jb 0x18000a6ed
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x18000a6e0
call fcn.18001a020
jmp 0x18000a6e7
mov byte [rbp + 0xe6], r12b
mov dword [rbp + 0x609c], edi
movss xmm0, dword [rbx + 0x18]
lea rcx, [rbx + 0x6000]
inc dword [rbx + 0x3fc0]
xor edx, edx
cvtps2pd xmm0, xmm0
mov byte [rbx + 0x3fcc], r12b
mov word [rbx + 0x5fe8], di
mov dword [rbx + 0x4068], edi
addsd xmm0, qword [rbx + 0x3fb8]
movsd qword [rbx + 0x3fb8], xmm0
call fcn.18001b310
movsxd rax, dword [rbx + 0x634c]
movss xmm1, dword [rbx + 0x18]
movss xmm7, dword [0x1800c1ef4]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x625c]
addss xmm0, dword [rbx + 0x6354]
movss dword [rbx + 0x6354], xmm0
movss dword [rbx + rax*4 + 0x625c], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x634c]
movss xmm2, dword [rbx + 0x6354]
inc ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3c
sub ecx, eax
mov eax, dword [rbx + 0x6350]
inc eax
mov dword [rbx + 0x634c], ecx
mov ecx, reloc.WLDAP32.dll_Ordinal_60
cmp eax, ecx
cmovl ecx, eax
comiss xmm2, xmm6
mov dword [rbx + 0x6350], ecx
jbe 0x18000a7ca
movss xmm1, dword [0x1800c1df0]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x18000a7cd
movaps xmm1, xmm7
lea rcx, [rbx + 0x4000]
movss dword [rbx + 0xec], xmm1
call fcn.18001b070
movzx ecx, byte [rbx + 0x5b]
call fcn.180014a00
mov rsi, qword [0x1800cfe40]
mov rax, qword [rsi + 0x4ba0]
mov rcx, qword [rax]
mov qword [rcx + 4], 5
mov dword [rcx + 0xc], edi
movsd xmm0, qword [rsi + 0x10]
movsd qword [rcx + 0x10], xmm0
mov rcx, qword [rsi + 0x4ba0]
movsxd rax, dword [rsi + 0x4b98]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x18000a8c9
nop dword [rax + rax]
mov rax, qword [rcx]
movaps xmm3, xmm6
add rcx, 8
movsd xmm4, qword [rax + 0xc0]
movsd xmm2, qword [rax + 0xc8]
movaps xmm1, xmm4
movsd qword [rax + 0xb8], xmm2
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
mov qword [rax + 0xc8], rdi
mov qword [rax + 0xc0], rdi
movsd qword [rax + 0xb0], xmm4
addss xmm0, dword [rax + 0xc]
addss xmm1, dword [rax + 8]
movss dword [rax + 0x1c], xmm0
movaps xmm0, xmm4
movss dword [rax + 0x18], xmm1
movss xmm1, dword [rax + 0x10]
shufps xmm0, xmm0, 0x55
subss xmm1, xmm4
addss xmm1, xmm2
movss xmm2, dword [rax + 0x14]
subss xmm2, xmm0
movaps xmm0, xmm6
maxss xmm3, xmm1
addss xmm2, dword [rax + 0xbc]
movss dword [rax + 0x20], xmm3
maxss xmm0, xmm2
movss dword [rax + 0x24], xmm0
cmp rcx, rdx
jne 0x18000a830
mov rax, qword [rbx + 0x38]
mov byte [rax + 0x18], r12b
call fcn.18000a2c0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
jne 0x18000a8ea
mov rax, qword [rsi + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
call fcn.1800123f0
mov rcx, qword [rbx + 0x4ba0]
movsxd rax, dword [rbx + 0x4b98]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x18000a920
nop word [rax + rax]
mov rax, qword [rcx]
add rcx, 8
mov byte [rax + 0x50], dil
cmp rcx, rdx
jne 0x18000a910
cmp byte [rbx + 0x4dc4], dil
je 0x18000a954
mov eax, dword [rbx + 0x4de4]
cmp eax, dword [rbx + 0x40e4]
jne 0x18000a954
cmp dword [rsi + 0x40e4], eax
jne 0x18000a945
mov dword [rsi + 0x40e8], eax
cmp dword [rsi + 0x4114], eax
jne 0x18000a954
mov byte [rsi + 0x4118], r12b
cmp dword [rbx + 0x40d4], edi
jne 0x18000a964
mov dword [rbx + 0x40d8], edi
jmp 0x18000a976
mov eax, dword [rbx + 0x40d0]
test eax, eax
je 0x18000a97c
cmp dword [rbx + 0x40e4], eax
jne 0x18000a97c
mov dword [rbx + 0x40dc], edi
mov eax, dword [rbx + 0x40d0]
test eax, eax
je 0x18000a9b6
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x40d8]
movss dword [rbx + 0x40d8], xmm0
cmp dword [rbx + 0x40e4], eax
je 0x18000a9b6
addss xmm1, dword [rbx + 0x40dc]
movss dword [rbx + 0x40dc], xmm1
mov dword [rbx + 0x40d4], eax
mov eax, dword [rbx + 0x40e4]
mov dword [rbx + 0x40d0], edi
mov word [rbx + 0x40e0], di
test eax, eax
je 0x18000a9e8
cmp dword [rbx + 0x40e8], eax
je 0x18000a9e8
cmp dword [rbx + 0x4114], eax
jne 0x18000a9e8
call fcn.180009160
mov ecx, dword [rbx + 0x40e4]
test ecx, ecx
je 0x18000aa07
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x40ec]
movss dword [rbx + 0x40ec], xmm0
mov rax, qword [rbx + 0x4108]
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x412c]
mov qword [rbx + 0x4120], rax
movzx eax, byte [rbx + 0x40f4]
mov byte [rbx + 0x4119], al
mov eax, dword [rbx + 0x5f48]
movss dword [rbx + 0x412c], xmm0
mov dword [rbx + 0x4114], ecx
mov dword [rbx + 0x40e8], edi
mov byte [rbx + 0x40f5], dil
mov byte [rbx + 0x4118], dil
mov byte [rbx + 0x40f0], dil
test eax, eax
je 0x18000aa6c
cmp ecx, eax
je 0x18000aa6c
mov dword [rbx + 0x5f48], edi
test ecx, ecx
jne 0x18000aa7d
mov dword [rbx + 0x49f0], edi
mov byte [rbx + 0x49f4], dil
mov ecx, dword [rbx + 0x4ff8]
test ecx, ecx
je 0x18000aaa0
movss xmm0, dword [rbx + 0x5014]
comiss xmm0, dword [rbx + 0x3d70]
jb 0x18000aaa6
mov dword [rbx + 0x5008], ecx
jmp 0x18000aaa6
mov dword [rbx + 0x5008], edi
mov rax, qword [rbx + 0x4080]
test rax, rax
je 0x18000aace
movss xmm0, dword [rbx + 0x5014]
comiss xmm0, dword [rbx + 0x3d70]
jb 0x18000aad4
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x500c], eax
jmp 0x18000aad4
mov dword [rbx + 0x500c], edi
movss xmm0, dword [rbx + 0x5000]
mov dword [rbx + 0x4ffc], ecx
test ecx, ecx
je 0x18000ab01
addss xmm0, dword [rbx + 0x18]
mov dword [rbx + 0x5004], edi
mov dword [rbx + 0x4ff8], edi
movss dword [rbx + 0x5000], xmm0
jmp 0x18000ab3a
comiss xmm0, xmm6
jbe 0x18000ab3a
movss xmm2, dword [rbx + 0x18]
movss xmm0, dword [0x1800c1d88]
movaps xmm1, xmm2
addss xmm1, dword [rbx + 0x5004]
addss xmm2, xmm2
movss dword [rbx + 0x5004], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x18000ab3a
mov qword [rbx + 0x5000], rdi
mov eax, dword [rbx + 0x4e44]
mov dword [rbx + 0x4e48], eax
mov qword [rbx + 0x4e40], 0x7f7fffff
mov word [rbx + 0x4dc5], di
mov dword [rbx + 0x4e50], edi
call fcn.1800137a0
call fcn.180017a50
call fcn.180013f00
call fcn.180009e40
mov r10, qword [0x1800cfe40]
mov rcx, qword [r10 + 0x4098]
test rcx, rcx
je 0x18000ac45
mov eax, dword [r10 + 0x40e4]
mov dword [r10 + 0x40e8], eax
cmp dword [r10 + 0x4114], eax
jne 0x18000aba7
mov byte [r10 + 0x4118], r12b
mov r9, qword [rcx + 0x390]
cmp byte [r10 + 0x118], dil
je 0x18000ac3c
lea rax, [r10 + 0x110]
mov rcx, rax
test rax, rax
jne 0x18000abd1
lea rcx, [r10 + 0x110]
movss xmm0, dword [rcx]
movss xmm1, dword [0x1800c1f48]
comiss xmm0, xmm1
movss xmm2, dword [rcx + 4]
jb 0x18000ac3c
comiss xmm2, xmm1
jb 0x18000ac3c
movss xmm0, dword [rax]
lea rdx, [rsp + 0x80]
movss xmm1, dword [rax + 4]
mov r8d, r12d
subss xmm0, dword [r10 + 0x40fc]
subss xmm1, dword [r10 + 0x4100]
mov rcx, r9
movss dword [rsp + 0x80], xmm0
movss dword [rsp + 0x84], xmm1
call fcn.1800124b0
mov rcx, qword [r10 + 0x4098]
xor edx, edx
call fcn.180011fc0
jmp 0x18000ac85
mov qword [r10 + 0x4098], rdi
jmp 0x18000ac80
mov rcx, qword [r10 + 0x4108]
test rcx, rcx
je 0x18000ac85
mov eax, dword [r10 + 0x40e4]
cmp dword [rcx + 0x8c], eax
jne 0x18000ac85
mov dword [r10 + 0x40e8], eax
cmp dword [r10 + 0x4114], eax
jne 0x18000ac77
mov byte [r10 + 0x4118], r12b
cmp byte [r10 + 0x118], dil
jne 0x18000ac85
call fcn.180009160
mov r8, qword [0x1800cfe40]
mov eax, dword [r8 + 0x4b68]
sub eax, r12d
js 0x18000acca
mov r8, qword [r8 + 0x4b70]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x18000acc1
test dword [rax + 0x14], 0x8000000
jne 0x18000ace0
sub r8, 0x38
sub rdx, r12
jns 0x18000acb0
cmp qword [rbx + 0x4d88], rdi
je 0x18000acff
movss xmm0, dword [rbx + 0x4da4]
comiss xmm0, xmm6
jbe 0x18000acff
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1800c1e78]
addss xmm1, dword [rbx + 0x4dc0]
minss xmm1, dword [0x1800c1df0]
jmp 0x18000ad1c
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1800c1e84]
movss xmm1, dword [rbx + 0x4dc0]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x4dc0], xmm1
mov eax, 0xffffffff
movups xmm0, xmmword [rbx + 0x6078]
mov dword [rbx + 0x5010], edi
mov qword [rbx + 0x635c], 0xffffffffffffffff
movups xmmword [rbx + 0x6088], xmm0
mov dword [rbx + 0x6358], eax
mov byte [rbx + 0x6078], dil
call fcn.180014410
cmp byte [rbx + 0x3fcf], dil
jne 0x18000ad7d
movss xmm0, dword [rbx + 0x64]
comiss xmm6, xmm0
ja 0x18000ad7d
movsd xmm7, qword [rbx + 0x3fb8]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov r14, qword [rbx + 0x4020]
movsxd rax, dword [rbx + 0x4018]
lea rbp, [r14 + rax*8]
cmp r14, rbp
je 0x18000aeae
nop dword [rax + rax]
mov rsi, qword [r14]
movzx ecx, byte [rsi + 0xca]
movzx eax, word [rsi + 0xd8]
mov byte [rsi + 0xcb], cl
mov byte [rsi + 0xca], dil
mov byte [rsi + 0xcc], dil
mov word [rsi + 0xda], ax
mov word [rsi + 0xd8], di
test cl, cl
jne 0x18000aea1
cmp byte [rsi + 0x404], dil
jne 0x18000aea1
comiss xmm7, dword [rsi + 0x27c]
jbe 0x18000aea1
mov rcx, qword [rsi + 0x2b0]
mov byte [rsi + 0x404], r12b
mov eax, dword [rcx + 0x14]
mov dword [rsi + 0x3fc], eax
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x400], eax
mov rcx, qword [rsi + 0x110]
test rcx, rcx
je 0x18000ae35
mov qword [rsi + 0x108], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x110], rdi
mov rcx, qword [rsi + 0x2b0]
call fcn.180023250
mov rcx, qword [rsi + 0x1b0]
test rcx, rcx
je 0x18000ae61
mov qword [rsi + 0x1a8], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1b0], rdi
mov rcx, qword [rsi + 0x1e8]
test rcx, rcx
je 0x18000ae81
mov qword [rsi + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1e8], rdi
mov rcx, qword [rsi + 0x1f8]
test rcx, rcx
je 0x18000aea1
mov qword [rsi + 0x1f0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1f8], rdi
add r14, 8
cmp r14, rbp
jne 0x18000ada0
mov ebp, edi
cmp dword [rbx + 0x4ed8], edi
jle 0x18000afde
mov qword [rsp + 0x50], r15
mov r14, rdi
mov r15, rdi
mov qword [rsp + 0x98], r13
movabs r12, 0x3759f22983759f23
nop dword [rax]
mov rax, qword [rbx + 0x4ee0]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm6
jb 0x18000afb2
comiss xmm7, xmm0
jbe 0x18000afb2
mov rsi, qword [rbx + 0x4eb8]
mov r13, qword [0x1800cfe40]
add rsi, r15
mov qword [rsi + 0x1f0], rdi
mov rcx, qword [rsi + 0x1e8]
test rcx, rcx
je 0x18000af37
mov qword [rsi + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x1e8], rdi
mov byte [rsi + 0x239], 1
mov rcx, qword [rsi + 0x198]
test rcx, rcx
je 0x18000af5e
mov qword [rsi + 0x190], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x198], rdi
mov edx, edi
mov byte [rsi + 0x248], 1
cmp dword [rsi + 0x6c], edi
jle 0x18000af86
mov rcx, rdi
nop
mov rax, qword [rsi + 0x18]
lea rcx, [rcx + 0x70]
inc edx
mov word [rcx + rax - 0x20], 0xffff
cmp edx, dword [rsi + 0x6c]
jl 0x18000af70
sub rsi, qword [r13 + 0x4eb8]
mov rax, r12
imul rsi
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x4ee0]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc ebp
add r14, 4
add r15, 0x250
cmp ebp, dword [rbx + 0x4ed8]
jl 0x18000aee0
mov r15, qword [rsp + 0x50]
mov r12d, 1
mov r13, qword [rsp + 0x98]
mov rsi, qword [rbx + 0x4ea8]
movsxd rax, dword [rbx + 0x4ea0]
mov r14, qword [rsp + 0x58]
imul rbp, rax, 0x88
add rbp, rsi
cmp rsi, rbp
je 0x18000b02b
movss xmm0, dword [rsi + 4]
comiss xmm0, xmm6
jb 0x18000b01f
comiss xmm7, xmm0
jbe 0x18000b01f
lea rcx, [rsi + 0x28]
call fcn.180025e70
mov dword [rsi + 4], 0xbf800000
add rsi, 0x88
cmp rsi, rbp
jne 0x18000b000
cmp byte [rbx + 0x3fcf], dil
je 0x18000b092
mov rsi, qword [0x1800cfe40]
mov rcx, qword [rsi + 0x4b50]
test rcx, rcx
je 0x18000b05b
mov qword [rsi + 0x4b48], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4b50], rdi
mov rcx, qword [rsi + 0x4b60]
test rcx, rcx
je 0x18000b07b
mov qword [rsi + 0x4b58], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsi + 0x4b60], rdi
lea rcx, [rsi + 0x4fc0]
mov dword [rsi + 0x4fb8], edi
call fcn.18001a8e0
call fcn.18002ca00
mov rax, qword [rbx + 0x4ba8]
mov byte [rbx + 0x3fcf], dil
test rax, rax
je 0x18000b104
cmp byte [rax + 0xcb], dil
jne 0x18000b104
mov rcx, qword [0x1800cfe40]
mov eax, dword [rcx + 0x4028]
sub eax, 1
js 0x18000b0fa
movsxd rdx, eax
mov rax, qword [rcx + 0x4030]
lea r8, [rax + rdx*8]
nop
mov rcx, qword [r8]
test rcx, rcx
je 0x18000b0f0
cmp byte [rcx + 0xcb], dil
je 0x18000b0f0
mov eax, dword [rcx + 0x14]
and eax, 0x10200
cmp eax, 0x10200
jne 0x18000b0fc
sub r8, 8
sub rdx, 1
jns 0x18000b0d0
xor ecx, ecx
mov edx, r12d
call fcn.180011fc0
mov ecx, dword [rbx + 0x404c]
test ecx, ecx
jns 0x18000b16b
mov eax, ecx
mov esi, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x18000b16b
movsxd rax, esi
imul rcx, rax, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x4050]
mov rbp, rax
test rdx, rdx
je 0x18000b15e
movsxd rcx, dword [rbx + 0x4048]
imul r8, rcx, 0x70
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x4050]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4050], rbp
mov dword [rbx + 0x404c], esi
lea rcx, [rbx + 0x4b78]
mov dword [rbx + 0x4048], edi
xor edx, edx
call fcn.18001ac70
mov ecx, dword [rbx + 0x4b4c]
mov eax, ecx
mov r8d, ecx
test ecx, ecx
jns 0x18000b1f0
cdq
mov esi, edi
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
mov eax, ecx
cmp esi, ecx
jle 0x18000b1f0
movsxd rcx, esi
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x4b50]
mov rbp, rax
test rdx, rdx
je 0x18000b1de
movsxd r8, dword [rbx + 0x4b48]
mov rcx, rax
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x4b50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4b50], rbp
mov eax, esi
mov dword [rbx + 0x4b4c], esi
mov r8d, esi
mov rbp, qword [rsp + 0x88]
mov dword [rbx + 0x4b48], edi
test eax, eax
jne 0x18000b270
test r8d, r8d
je 0x18000b220
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
cmp eax, 1
cmovg r12d, eax
cmp r12d, r8d
jle 0x18000b270
jmp 0x18000b226
mov r12d, 8
movsxd rcx, r12d
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x4b50]
mov rsi, rax
test rdx, rdx
je 0x18000b262
movsxd r8, dword [rbx + 0x4b48]
mov rcx, rax
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x4b50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4b50], rsi
mov dword [rbx + 0x4b4c], r12d
movsxd rcx, dword [rbx + 0x4b48]
xor edx, edx
mov rax, qword [rbx + 0x4b50]
mov dword [rax + rcx*4], reloc.WS2_32.dll_recv
movsxd rcx, dword [rbx + 0x4b48]
lea eax, [rcx + 1]
mov dword [rbx + 0x4b48], eax
mov rax, qword [rbx + 0x4b50]
mov ecx, dword [rax + rcx*4]
mov dword [rbx + 0x4a00], ecx
lea rcx, [rbx + 0x4b58]
call fcn.18001ac70
mov rax, qword [0x1800cfe40]
movsd xmm0, qword [str.uWQAR]
mov ecx, dword [0x1800b3ba8]
mov r12, qword [rsp + 0x90]
mov byte [rbx + 0x3fcd], 1
or dword [rax + 0x4a90], 2
mov dword [rax + 0x4ab0], 0x43c80000
mov dword [rax + 0x4ab4], 0x43c80000
mov dword [rax + 0x4a98], 4
cmp dword [reloc.WS2_32.dll_accept], 2
movzx eax, word [0x1800b3bac]
mov word [rsp + 0x2c], ax
movzx eax, byte [0x1800b3bae]
mov byte [rsp + 0x2e], al
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], ecx
jl 0x18000b46c
movdqa xmm5, xmmword [0x1800c23d0]
mov edi, ntohs
movdqa xmm2, xmmword [0x1800c1fc0]
movdqa xmm3, xmmword [0x1800c1ff0]
movdqa xmm1, xmm2
movdqa xmm6, xmmword [0x1800c2040]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm4, xmmword [0x1800c2090]
movdqa xmm7, xmmword [0x1800c20f0]
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, dword [str.uWQAR]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x1800c1fe0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
pmuldq xmm1, xmm5
paddb xmm2, xmm7
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x24], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
xorps xmm3, xmm0
movd dword [rsp + 0x28], xmm3
movaps xmm7, xmmword [rsp + 0x30]
lea r8, [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x40]
mov eax, edi
add r8, rax
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, dil
inc edi
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp edi, 0xf
jl 0x18000b480
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.18000f7b0
mov rdi, qword [rbx + 0x60e8]
movsxd rsi, dword [rbx + 0x60e0]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x18000b4ef
cmp dword [rdi + 4], 1
jne 0x18000b4e6
mov rdx, rdi
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_recv]
add rdi, 0x20
cmp rdi, rsi
jne 0x18000b4d7
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret