Function at 0x543d90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x118
call fcn.005555e0
sub rsp, rax
mov rax, qword [0x005c3458]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x100], rsi
mov rsi, rcx
mov qword [rsp + 0xf8], rdi
mov rcx, r8
mov rbx, r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0xf0], r12
xor edi, edi
call fcn.004c3f70
test eax, eax
mov r12d, eax
mov dword [rsp + 0x30], eax
js 0x544187
mov qword [rsp + 0x108], rbp
mov ebp, dword [rsp + 0x140]
cmp ebp, 0xffffffff
jne 0x543ed0
mov ebp, eax
mov rcx, qword [rsi + 0x18]
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xe0], r14
mov qword [rsp + 0xd8], r15
call fcn.00480cb0
mov rcx, rsi
lea r14d, [rax - 1]
and r14d, 7
call fcn.004bf460
mov r15d, 0xff
mov edx, r15d
mov ecx, r14d
mov r13d, eax
shl edx, cl
test byte [rbx], dl
je 0x543f07
mov edx, 0x7e
lea r9, [0x005dfaf8]
lea r8d, [r15 - 0x7a]
lea ecx, [rdx - 0x7a]
mov dword [rsp + 0x20], WSAGetLastError
call fcn.00475480
mov eax, edi
mov r14, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0x108]
mov r12, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc0]
call fcn.005555b0
add rsp, 0x118
ret
cmp ebp, 0xfffffffe
jne 0x543eda
jmp 0x543e0f
cmp ebp, 0xfffffffe
jge 0x543e0f
mov edx, 0x7e
lea r9, [0x005dfae0]
mov dword [rsp + 0x20], 0x61
lea ecx, [rdx - 0x7a]
lea r8d, [rdx + 0xa]
call fcn.00475480
mov eax, edi
jmp 0x543e93
test r14d, r14d
jne 0x543f12
inc rbx
dec r13d
lea eax, [r12 + rbp + 2]
cmp r13d, eax
jge 0x543f43
mov edx, 0x7e
lea r9, [0x005dfb10]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAStartup
lea ecx, [rdx - 0x7a]
lea r8d, [rdx - 0x11]
call fcn.00475480
mov eax, edi
jmp 0x543e7b
movsxd rax, r13d
cmp byte [rax + rbx - 1], 0xbc
je 0x543f74
mov edx, 0x7e
lea r9, [0x005dfb28]
mov dword [rsp + 0x20], 0x78
lea ecx, [rdx - 0x7a]
lea r8d, [rdx + 8]
call fcn.00475480
mov eax, edi
jmp 0x543e7b
sub r13d, r12d
lea rdx, [0x005dfb40]
mov r8d, 0x7d
dec r13d
movsxd r12, r13d
mov ecx, r13d
lea rax, [r12 + rbx]
mov qword [rsp + 0x38], rax
call fcn.00472400
test rax, rax
mov rsi, rax
jne 0x543fc6
lea r9, [0x005dfb58]
lea edx, [rax + 0x7e]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov dword [rsp + 0x20], 0x80
call fcn.00475480
jmp 0x54416f
mov rax, qword [rsp + 0x40]
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov edx, r13d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.004e1990
test eax, eax
js 0x54416f
test r13d, r13d
jle 0x54400f
mov rcx, rsi
sub rbx, rsi
nop
nop
movzx eax, byte [rbx + rcx]
inc rcx
xor byte [rcx - 1], al
dec r12
jne 0x544000
test r14d, r14d
je 0x544022
mov ecx, 8
sub ecx, r14d
sar r15d, cl
and byte [rsi], r15b
mov ebx, edi
cmp byte [rsi], bl
jne 0x54403e
lea ecx, [r13 - 1]
mov rax, rsi
nop
cmp ebx, ecx
jge 0x54403e
inc rax
inc ebx
cmp byte [rax], dil
je 0x544030
movsxd rax, ebx
inc ebx
cmp byte [rax + rsi], 1
je 0x54406e
mov edx, 0x7e
lea r9, [0x005dfb70]
mov dword [rsp + 0x20], 0x8c
lea ecx, [rdx - 0x7a]
lea r8d, [rdx + 9]
call fcn.00475480
jmp 0x54416f
test ebp, ebp
js 0x5440a0
mov eax, r13d
sub eax, ebx
cmp eax, ebp
je 0x5440a0
mov edx, 0x7e
lea r9, [0x005dfb88]
mov dword [rsp + 0x20], DllRegisterServer
lea ecx, [rdx - 0x7a]
lea r8d, [rdx + 0xa]
call fcn.00475480
jmp 0x54416f
lea rcx, [rsp + 0x50]
call fcn.004d5f00
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
xor r8d, r8d
call fcn.004d5f70
lea rdx, [0x00588088]
lea rcx, [rsp + 0x50]
mov r8d, 8
call fcn.004d61e0
movsxd rbp, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8, rbp
call fcn.004d61e0
sub r13d, ebx
je 0x544102
movsxd rdx, ebx
lea rcx, [rsp + 0x50]
movsxd r8, r13d
add rdx, rsi
call fcn.004d61e0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
xor r8d, r8d
call fcn.004d63b0
lea rcx, [rsp + 0x50]
call fcn.004d62b0
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
mov r9d, 1
mov r8, rbp
mov dword [rsp + 0x20], 1
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x54416a
mov edx, 0x7e
lea r9, [0x005dfba0]
mov dword [rsp + 0x20], 0x9e
lea ecx, [rdx - 0x7a]
lea r8d, [rdx - 0x16]
call fcn.00475480
jmp 0x54416f
mov edi, 1
test rsi, rsi
je 0x543e79
mov rcx, rsi
call fcn.004728d0
mov eax, edi
jmp 0x543e7b
mov eax, edi
jmp 0x543e9b