Function at 0x140045220
Capabilities:
Access pe header
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400d0080]
xor rax, rsp
mov qword [rbp + 0x38], rax
test dl, dl
lea rax, [0x1400d0160]
mov r12, rcx
lea rdi, [0x140500b60]
cmove rdi, rax
mov rcx, rdi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r13d, dword [reloc.WS2_32.dll_accept]
xor ebx, ebx
mov r14, rax
test rax, rax
jne 0x14004545a
mov ecx, dword [0x1400c3f48]
mov r8d, ebx
movzx eax, byte [0x1400c3f4e]
mov dword [rsp + 0x50], ecx
movzx ecx, word [0x1400c3f4c]
mov word [rsp + 0x54], cx
mov byte [rsp + 0x56], al
movups xmm0, xmmword [0x1400c3f38]
movups xmmword [rsp + 0x40], xmm0
cmp r13d, 2
jl 0x140045407
movdqa xmm0, xmmword [0x1400c4150]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x1400c40e0]
movdqa xmm4, xmmword [0x1400c4130]
movdqa xmm6, xmmword [0x1400c4100]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140045300
cmp r8d, 0x17
jge 0x140045450
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x17
jl 0x140045420
lea rcx, [rsp + 0x40]
call fcn.1400445c0
mov dword [rbp + 0x30], ebx
nop dword [rax]
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, reloc.WS2_32.dll_sendto
mov dword [rsp + 0x58], eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [rbp + 0x30]
test esi, esi
je 0x140045460
test r15d, r15d
je 0x140045c3f
mov rcx, qword gs:[0x58]
mov r12d, 4
add r12, qword [rcx]
mov eax, dword [r12]
cmp dword [0x14090c154], eax
jle 0x1400454e5
lea rcx, [0x14090c154]
call fcn.1400a9400
cmp dword [0x14090c154], 0xffffffff
jne 0x1400454e5
lea rcx, [0x1400abb40]
call fcn.1400a96dc
lea rcx, [0x14090c154]
call fcn.1400a9394
mov eax, dword [r14 + 0x50]
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x30], 4
mov dword [rbp - 0x10], esi
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x28], rbx
mov dword [rbp + 0x10], 0x40
call fcn.1400447a0
mov r13, qword [rbp + 8]
mov r8, r14
mov rcx, r13
mov rdx, rdi
call fcn.140044e50
test eax, eax
jne 0x14004570a
mov eax, dword [r12]
cmp dword [0x14090c154], eax
jle 0x140045562
lea rcx, [0x14090c154]
call fcn.1400a9400
cmp dword [0x14090c154], 0xffffffff
jne 0x140045562
lea rcx, [0x1400abb40]
call fcn.1400a96dc
lea rcx, [0x14090c154]
call fcn.1400a9394
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 5
mov dword [rbp - 0x70], esi
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], rbx
call fcn.1400447a0
cmp byte [0x1400c3e55], bl
mov eax, dword [0x1400c3e50]
movsd xmm0, qword [str.CW__V]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1400c3e54]
mov word [rsp + 0x3c], ax
movsd qword [rsp + 0x30], xmm0
je 0x140045700
cmp dword [reloc.WS2_32.dll_accept], 2
mov r8d, ebx
jl 0x1400456c2
movdqa xmm2, xmmword [0x1400c40e0]
mov r8d, 8
movdqa xmm4, xmmword [0x1400c4130]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400c40f0]
movdqa xmm0, xmm2
mov eax, dword [0x1400c4150]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c4100]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.CW__V]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x30], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c4100]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c4120]
movd xmm1, dword [rsp + 0x34]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x1400456d0
lea rcx, [rsp + 0x30]
call fcn.1400445c0
mov rcx, rsi
mov r9, r14
mov r8, rdi
mov edx, r15d
call fcn.140044fe0
test eax, eax
jne 0x14004590a
mov eax, dword [r12]
cmp dword [0x14090c154], eax
jle 0x14004575c
lea rcx, [0x14090c154]
call fcn.1400a9400
cmp dword [0x14090c154], 0xffffffff
jne 0x14004575c
lea rcx, [0x1400abb40]
call fcn.1400a96dc
lea rcx, [0x14090c154]
call fcn.1400a9394
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 5
mov dword [rbp - 0x70], esi
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], rbx
call fcn.1400447a0
cmp dword [reloc.WS2_32.dll_accept], 2
mov r8d, ebx
mov eax, dword [0x1400c3df8]
movsd xmm0, qword [str.X_C_GB]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1400c3dfc]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x1400c3dfe]
mov byte [rsp + 0x3e], al
movsd qword [rsp + 0x30], xmm0
jl 0x1400458bb
movdqa xmm2, xmmword [0x1400c40e0]
mov r8d, 8
movdqa xmm4, xmmword [0x1400c4130]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400c40f0]
movdqa xmm0, xmm2
mov eax, dword [0x1400c4150]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c4100]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.X_C_GB]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x30], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c4100]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c4120]
movd xmm1, dword [rsp + 0x34]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xf
jl 0x1400458d0
lea rcx, [rsp + 0x30]
call fcn.1400445c0
movzx edi, word [r14 + 0x14]
movzx r15d, bx
add rdi, 0x2c
cmp bx, word [r14 + 6]
jae 0x1400459aa
mov rbx, qword [rsp + 0x60]
add rdi, r14
nop word [rax + rax]
mov eax, dword [r12]
cmp dword [0x14090c154], eax
jle 0x140045969
lea rcx, [0x14090c154]
call fcn.1400a9400
cmp dword [0x14090c154], 0xffffffff
jne 0x140045969
lea rcx, [0x1400abb40]
call fcn.1400a96dc
lea rcx, [0x14090c154]
call fcn.1400a9394
mov eax, dword [rdi - 8]
lea rdx, [rsp + 0x70]
add rax, r13
mov dword [rsp + 0x70], 1
mov qword [rbp - 0x80], rax
mov eax, dword [rdi]
add rax, rbx
mov dword [rbp - 0x70], esi
mov qword [rsp + 0x78], rax
mov eax, dword [rdi - 4]
mov qword [rbp - 0x78], rax
call fcn.1400447a0
inc r15w
add rdi, 0x28
cmp r15w, word [r14 + 6]
jb 0x140045930
xor ebx, ebx
mov edx, dword [rsp + 0x58]
mov r9, r14
mov r8, r13
mov rcx, rsi
call fcn.140044b70
movzx edi, word [r14 + 0x14]
movzx r15d, bx
add rdi, 0x28
cmp bx, word [r14 + 6]
jae 0x140045a95
add rdi, r14
mov rbx, r12
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x140045a80
test dword [rdi + 0x14], 0x2000000
je 0x140045a80
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [rbx]
mov r12, rax
cmp dword [0x14090c154], ecx
jle 0x140045a45
lea rcx, [0x14090c154]
call fcn.1400a9400
cmp dword [0x14090c154], 0xffffffff
jne 0x140045a45
lea rcx, [0x1400abb40]
call fcn.1400a96dc
lea rcx, [0x14090c154]
call fcn.1400a9394
mov eax, dword [rdi - 4]
lea rdx, [rsp + 0x70]
add rax, r13
mov dword [rsp + 0x70], 1
mov qword [rbp - 0x80], rax
mov eax, dword [rdi]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], esi
mov qword [rsp + 0x78], r12
call fcn.1400447a0
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc r15w
add rdi, 0x28
cmp r15w, word [r14 + 6]
jb 0x1400459e0
xor ebx, ebx
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp byte [reloc.WLDAP32.dll_Ordinal_60], 0
movsd xmm0, qword [0x1400c3de0]
mov eax, dword [0x1400c3de8]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
je 0x140045c1c
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140045bdb
movdqa xmm2, xmmword [0x1400c40e0]
mov ebx, 8
movdqa xmm4, xmmword [0x1400c4130]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400c40f0]
movdqa xmm0, xmm2
mov eax, dword [0x1400c4150]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c4100]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x1400c3de0]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x40], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400c4100]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c4120]
movd xmm1, dword [rsp + 0x44]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x44], xmm2
movsxd rax, ebx
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0xc
jl 0x140045bf0
lea rcx, [rsp + 0x40]
call fcn.1400445c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140041ac0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140045df6
cmp byte [0x1400c3fcd], bl
mov eax, dword [0x1400c3fc8]
movups xmm0, xmmword [0x1400c3fb8]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1400c3fcc]
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x54], ax
je 0x140045dec
cmp r13d, 2
jl 0x140045db4
movdqa xmm0, xmmword [0x1400c4150]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x1400c40e0]
movdqa xmm4, xmmword [0x1400c4130]
movdqa xmm6, xmmword [0x1400c4100]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400c4120]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140045cb0
cmp eax, 0x16
jge 0x140045dec
movsxd rax, ebx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0x16
jl 0x140045dc0
lea rcx, [rsp + 0x40]
call fcn.1400445c0
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400a9330
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret