Function at 0x4d79b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.005555e0
sub rsp, rax
mov eax, dword [rcx]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rbp
mov r9d, eax
mov qword [rsp + 0x28], rsi
lea rsi, [0x00400000]
ror r9d, 8
mov qword [rsp + 0x20], rdi
mov rdi, r8
and r9d, 0xff00ff00
rol eax, 8
mov qword [rsp + 0x18], r12
and eax, 0xff00ff
mov qword [rsp + 0x10], r13
mov qword [rsp + 8], r14
or r9d, eax
mov eax, dword [rcx + 4]
mov qword [rsp], r15
xor r9d, dword [r8]
mov r8d, eax
mov r15, rdx
ror r8d, 8
and r8d, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or r8d, eax
mov eax, dword [rcx + 8]
xor r8d, dword [rdi + 4]
mov edx, eax
ror edx, 8
mov r10d, r8d
and edx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, dword [rcx + 0xc]
xor edx, dword [rdi + 8]
mov ecx, eax
ror ecx, 8
mov r11d, edx
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, edx
xor ecx, dword [rdi + 0xc]
shr rax, 8
movzx edx, al
mov eax, ecx
mov ebx, ecx
mov ebp, dword [rsi + rdx*4 + 0x17e460]
shr rax, 0x10
movzx ecx, al
mov eax, r9d
xor ebp, dword [rsi + rcx*4 + 0x17e060]
shr rax, 0x18
xor ebp, dword [rsi + rax*4 + 0x17dc60]
movzx eax, r8b
xor ebp, dword [rsi + rax*4 + 0x17e860]
mov eax, r9d
xor ebp, dword [rdi + 0x10]
shr rax, 0x10
movzx edx, al
mov rax, rbx
mov r12d, dword [rsi + rdx*4 + 0x17e060]
shr rax, 8
movzx ecx, al
mov eax, r8d
xor r12d, dword [rsi + rcx*4 + 0x17e460]
shr rax, 0x18
xor r12d, dword [rsi + rax*4 + 0x17dc60]
movzx eax, r11b
xor r12d, dword [rsi + rax*4 + 0x17e860]
mov eax, r9d
xor r12d, dword [rdi + 0x14]
shr rax, 8
movzx edx, al
mov eax, r8d
mov edx, dword [rsi + rdx*4 + 0x17e460]
shr rax, 0x10
movzx ecx, al
xor edx, dword [rsi + rcx*4 + 0x17e060]
mov r14d, dword [rdi + 0xf0]
shr r10, 8
movzx ecx, r10b
mov rax, r11
shr r11, 0x10
mov r10d, dword [rsi + rcx*4 + 0x17e460]
shr rax, 0x18
sar r14d, 1
xor edx, dword [rsi + rax*4 + 0x17dc60]
movzx eax, bl
shr rbx, 0x18
xor edx, dword [rsi + rax*4 + 0x17e860]
movzx eax, r11b
lea r13, [rdi + 0x20]
xor r10d, dword [rsi + rax*4 + 0x17e060]
xor edx, dword [rdi + 0x18]
movzx eax, r9b
xor r10d, dword [rsi + rbx*4 + 0x17dc60]
xor r10d, dword [rsi + rax*4 + 0x17e860]
xor r10d, dword [rdi + 0x1c]
dec r14d
je 0x4d7dbb
lea r15, [0x00400000]
nop
nop
mov r11d, edx
mov esi, r10d
mov eax, edx
shr rax, 8
mov r10d, r12d
movzx edx, al
mov rax, rsi
shr r10, 8
mov edi, dword [r15 + rdx*4 + 0x17e460]
shr rax, 0x10
movzx ecx, al
mov eax, ebp
xor edi, dword [r15 + rcx*4 + 0x17e060]
shr rax, 0x18
xor edi, dword [r15 + rax*4 + 0x17dc60]
movzx eax, r12b
xor edi, dword [r15 + rax*4 + 0x17e860]
mov eax, ebp
xor edi, dword [r13]
shr rax, 0x10
movzx edx, al
mov rax, rsi
mov r9d, dword [r15 + rdx*4 + 0x17e060]
shr rax, 8
movzx ecx, al
mov eax, r12d
xor r9d, dword [r15 + rcx*4 + 0x17e460]
shr rax, 0x18
xor r9d, dword [r15 + rax*4 + 0x17dc60]
movzx eax, r11b
xor r9d, dword [r15 + rax*4 + 0x17e860]
mov eax, ebp
xor r9d, dword [r13 + 4]
shr rax, 8
movzx edx, al
mov eax, r12d
mov r8d, dword [r15 + rdx*4 + 0x17e460]
shr rax, 0x10
movzx ecx, al
mov rax, r11
shr r11, 0x10
xor r8d, dword [r15 + rcx*4 + 0x17e060]
shr rax, 0x18
movzx ecx, r10b
xor r8d, dword [r15 + rax*4 + 0x17dc60]
movzx eax, sil
shr rsi, 0x18
xor r8d, dword [r15 + rax*4 + 0x17e860]
movzx eax, r11b
mov r11d, dword [r15 + rcx*4 + 0x17e460]
xor r11d, dword [r15 + rax*4 + 0x17e060]
xor r8d, dword [r13 + 8]
movzx eax, bpl
xor r11d, dword [r15 + rsi*4 + 0x17dc60]
mov r10d, r8d
mov r8d, r9d
xor r11d, dword [r15 + rax*4 + 0x17e860]
mov rax, r10
xor r11d, dword [r13 + 0xc]
shr rax, 8
movzx edx, al
mov rax, r11
mov ebp, dword [r15 + rdx*4 + 0x17e460]
shr rax, 0x10
movzx ecx, al
mov eax, edi
xor ebp, dword [r15 + rcx*4 + 0x17e060]
shr rax, 0x18
xor ebp, dword [r15 + rax*4 + 0x17dc60]
movzx eax, r9b
xor ebp, dword [r15 + rax*4 + 0x17e860]
mov eax, edi
xor ebp, dword [r13 + 0x10]
shr rax, 0x10
movzx edx, al
mov rax, r11
mov r12d, dword [r15 + rdx*4 + 0x17e060]
shr rax, 8
movzx ecx, al
mov eax, r9d
xor r12d, dword [r15 + rcx*4 + 0x17e460]
shr rax, 0x18
shr r8, 8
add r13, 0x20
xor r12d, dword [r15 + rax*4 + 0x17dc60]
movzx eax, r10b
xor r12d, dword [r15 + rax*4 + 0x17e860]
mov eax, edi
xor r12d, dword [r13 - 0xc]
shr rax, 8
movzx edx, al
mov eax, r9d
mov edx, dword [r15 + rdx*4 + 0x17e460]
shr rax, 0x10
movzx ecx, al
mov rax, r10
shr r10, 0x10
xor edx, dword [r15 + rcx*4 + 0x17e060]
shr rax, 0x18
movzx ecx, r8b
xor edx, dword [r15 + rax*4 + 0x17dc60]
movzx eax, r11b
shr r11, 0x18
xor edx, dword [r15 + rax*4 + 0x17e860]
movzx eax, r10b
mov r10d, dword [r15 + rcx*4 + 0x17e460]
xor r10d, dword [r15 + rax*4 + 0x17e060]
xor edx, dword [r13 - 8]
movzx eax, dil
xor r10d, dword [r15 + r11*4 + 0x17dc60]
xor r10d, dword [r15 + rax*4 + 0x17e860]
xor r10d, dword [r13 - 4]
dec r14d
jne 0x4d7b90
mov r15, qword [rsp + 0x48]
lea rsi, [0x00400000]
mov r8d, edx
mov r9d, r10d
mov eax, ebp
shr rax, 0x18
mov r10d, r12d
movzx edx, byte [rax + rsi + 0x17ec60]
mov rax, r9
shr rax, 0x10
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x17ec60]
xor edx, eax
mov rax, r8
shr rax, 8
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x17ec60]
xor edx, eax
movzx eax, r12b
movzx eax, byte [rax + rsi + 0x17ec60]
shl edx, 8
xor edx, eax
xor edx, dword [r13]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [r15], eax
mov eax, ebp
shr rax, 0x10
movzx ecx, al
mov eax, r12d
movzx edx, byte [rcx + rsi + 0x17ec60]
shr rax, 0x18
movzx eax, byte [rax + rsi + 0x17ec60]
shl eax, 8
xor edx, eax
mov rax, r9
shr rax, 8
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x17ec60]
xor edx, eax
movzx eax, r8b
movzx eax, byte [rax + rsi + 0x17ec60]
shl edx, 8
xor edx, eax
xor edx, dword [r13 + 4]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [r15 + 4], eax
mov eax, r12d
shr rax, 0x10
movzx ecx, al
mov rax, r8
movzx edx, byte [rcx + rsi + 0x17ec60]
shr rax, 0x18
movzx eax, byte [rax + rsi + 0x17ec60]
shl eax, 8
xor edx, eax
mov eax, ebp
shr rax, 8
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x17ec60]
xor edx, eax
movzx eax, r9b
movzx eax, byte [rax + rsi + 0x17ec60]
shl edx, 8
xor edx, eax
xor edx, dword [r13 + 8]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x58]
and edx, 0xff00ff
shr r8, 0x10
or eax, edx
shr r9, 0x18
shr r10, 8
mov dword [r15 + 8], eax
movzx eax, r8b
movzx edx, byte [rax + rsi + 0x17ec60]
movzx eax, byte [r9 + rsi + 0x17ec60]
shl eax, 8
xor edx, eax
movzx eax, r10b
movzx eax, byte [rax + rsi + 0x17ec60]
shl edx, 8
xor edx, eax
movzx eax, bpl
mov rbp, qword [rsp + 0x30]
movzx eax, byte [rax + rsi + 0x17ec60]
mov rsi, qword [rsp + 0x28]
shl edx, 8
xor edx, eax
xor edx, dword [r13 + 0xc]
mov r13, qword [rsp + 0x10]
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [r15 + 0xc], eax
mov r15, qword [rsp]
add rsp, 0x38
ret