Function at 0x41e1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506b24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41e219
lock inc dword [edi + 4]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 0x10], edi
test esi, esi
jne 0x41e25d
mov dword [ebp - 0x10], esi
test edi, edi
je 0x41e38f
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41e38c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41e38c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x41e38c
xor edx, edx
cmp dword [esi + 0x10], edx
jbe 0x41e38f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41e272
mov eax, dword [esi]
xor byte [eax + edx], 0x36
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x41e280
mov ecx, dword [esi]
cmp byte [ecx + edx], 0
mov ecx, esi
mov eax, dword [esi + 0x14]
jne 0x41e29b
cmp eax, 0x10
jb 0x41e292
mov ecx, dword [esi]
mov byte [ecx + edx], 0x55
jmp 0x41e382
cmp eax, 0x10
jb 0x41e2a2
mov ecx, dword [esi]
cmp byte [ecx + edx], 0x55
mov ecx, esi
jne 0x41e2ba
cmp eax, 0x10
jb 0x41e2b1
mov ecx, dword [esi]
mov byte [ecx + edx], 0xff
jmp 0x41e382
cmp eax, 0x10
jb 0x41e2c1
mov ecx, dword [esi]
cmp byte [ecx + edx], 0xff
mov ecx, esi
jne 0x41e2d9
cmp eax, 0x10
jb 0x41e2d0
mov ecx, dword [esi]
mov byte [ecx + edx], 0xfd
jmp 0x41e382
cmp eax, 0x10
jb 0x41e2e0
mov ecx, dword [esi]
cmp byte [ecx + edx], 0xfd
mov ecx, esi
jne 0x41e2f8
cmp eax, 0x10
jb 0x41e2ef
mov ecx, dword [esi]
mov byte [ecx + edx], 0xde
jmp 0x41e382
cmp eax, 0x10
jb 0x41e2ff
mov ecx, dword [esi]
cmp byte [ecx + edx], 0xde
mov ecx, esi
jne 0x41e314
cmp eax, 0x10
jb 0x41e30e
mov ecx, dword [esi]
mov byte [ecx + edx], 5
jmp 0x41e382
cmp eax, 0x10
jb 0x41e31b
mov ecx, dword [esi]
cmp byte [ecx + edx], 5
mov ecx, esi
jne 0x41e330
cmp eax, 0x10
jb 0x41e32a
mov ecx, dword [esi]
mov byte [ecx + edx], 1
jmp 0x41e382
cmp eax, 0x10
jb 0x41e337
mov ecx, dword [esi]
cmp byte [ecx + edx], 1
mov ecx, esi
jne 0x41e34c
cmp eax, 0x10
jb 0x41e346
mov ecx, dword [esi]
mov byte [ecx + edx], 0xa
jmp 0x41e382
cmp eax, 0x10
jb 0x41e353
mov ecx, dword [esi]
cmp byte [ecx + edx], 0xa
mov ecx, esi
jne 0x41e368
cmp eax, 0x10
jb 0x41e362
mov ecx, dword [esi]
mov byte [ecx + edx], 0x80
jmp 0x41e382
cmp eax, 0x10
jb 0x41e36f
mov ecx, dword [esi]
cmp byte [ecx + edx], 0x80
jne 0x41e382
mov ecx, esi
cmp eax, 0x10
jb 0x41e37e
mov ecx, dword [esi]
mov byte [ecx + edx], 0
inc edx
cmp edx, dword [esi + 0x10]
jb 0x41e268
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
test edi, edi
je 0x41e3bb
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41e3bb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41e3bb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x24
call fcn.004df290
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
lea esi, [ebx + 0xc]
xor eax, eax
mov ecx, esi
mov dword [ebx + 4], eax
lea eax, [ebx + 4]
mov dword [eax], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj2_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
push 0x5222e8
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00402ae0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
push 0
push 0x224b
mov byte [ebp - 4], 2
call fcn.00406bd0
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 0x41e44a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41e441
mov eax, dword [esi]
mov dword [esi + 0x10], ecx
mov byte [eax + ecx], 0
jmp 0x41e456
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.0046cf60
mov edi, esi
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x14]
mov eax, edi
jb 0x41e465
mov eax, dword [esi]
mov dword [eax], 0xabbadaad
cmp dword [ebx], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
jb 0x41e481
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push 0
push 0x2243
call fcn.00406bd0
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [eax + ecx], edx
cmp dword [ebx], 0x10
jb 0x41e4a6
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push 0
push 0x2247
call fcn.00406bd0
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx], edx
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x41e4cb
mov eax, dword [eax]
cmp dword [ebx], 0x10
jb 0x41e4d2
mov edi, dword [esi]
push dword [ecx + 0x10]
push eax
push 0
push 0x224b
call fcn.00406bd0
add esp, 8
add eax, edi
push eax
call fcn.004e0f70
add esp, 0xc
push 0
push 0x223f
call fcn.00406bd0
mov edi, eax
add esp, 8
cmp edi, dword [esi + 0x10]
jae 0x41e58a
lea ebx, [ebx]
mov dword [ebp - 0x10], 0
mov eax, esi
cmp dword [ebx], 0x10
jb 0x41e520
mov eax, dword [esi]
add eax, edi
mov dword [ebp - 0x39], 0xa4b7a6a3
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
sub eax, edi
mov dword [ebp - 0x35], 0x9e979d
mov dword [ebp - 0x1c], eax
xor eax, eax
mov byte [ebp - 0x31], 1
lea ecx, [eax - 0xc]
xor byte [ebp + eax - 0x39], cl
inc eax
cmp eax, 7
jb 0x41e541
push str.Ws2_32.dll
mov byte [ebp - 0x31], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x39]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 1
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x20]
call eax
cmp eax, 0xffffffff
je 0x41e5ed
add edi, dword [ebp - 0x10]
cmp edi, dword [esi + 0x10]
jb 0x41e510
mov bl, 1
mov ecx, dword [ebp - 0x24]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx], eax
jne 0x41e5b5
mov esi, dword [ebp - 0x28]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov eax, edi
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x41e5b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41e5da
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41e5da
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x41e5da
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 0x41e58c