Function at 0x416c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e458
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5be26c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00427810
mov ecx, eax
call fcn.004277e0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x58]
sub eax, 0x10
push eax
call fcn.004112a0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x54], edi
or ebx, 0xffffffff
mov byte [ebp - 4], 1
cmp dword [edi - 0xc], 0
je 0x416e2f
call fcn.00418e90
mov ecx, eax
test ecx, ecx
je 0x416e90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
push edi
mov byte [ebp - 4], 2
push dword [eax + 0x40]
lea eax, [ebp - 0x44]
push str._s_s.lnk
push eax
call fcn.00417340
mov eax, dword [ebp - 0x4c]
mov edx, 0xc638
mov edi, 0xc62e
mov esi, 0xc63e
mov ecx, 0xc630
add esp, 0x10
mov ebx, 0xf
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], eax
mov eax, 0xc66f
mov word [ebp - 0x40], ax
mov eax, 0xc622
mov word [ebp - 0x3e], dx
mov word [ebp - 0x3c], ax
mov eax, 0xc624
mov word [ebp - 0x3a], di
mov word [ebp - 0x38], ax
mov eax, 0xc637
mov word [ebp - 0x36], si
mov word [ebp - 0x34], ax
mov eax, 0xc62f
mov word [ebp - 0x32], ax
mov eax, 0xc63d
mov word [ebp - 0x30], ax
mov eax, 0xc67b
mov word [ebp - 0x2e], cx
mov word [ebp - 0x2c], ax
mov eax, 0xc67d
mov word [ebp - 0x2a], ax
mov eax, 0xc62b
mov word [ebp - 0x28], dx
mov word [ebp - 0x26], ax
mov eax, 0xc66d
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], cx
mov word [ebp - 0x20], ax
mov eax, 0xc628
mov word [ebp - 0x1e], ax
mov eax, 0xc632
mov word [ebp - 0x1c], ax
mov eax, 0xc634
mov word [ebp - 0x1a], si
xor esi, esi
mov word [ebp - 0x18], ax
mov eax, 0xc627
mov word [ebp - 0x16], di
mov word [ebp - 0x14], ax
mov eax, 0xc65e
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x40]
mov ax, word [ebp + esi*2 - 0x40]
mov ecx, esi
and ecx, ebx
movzx edi, ax
cmp ecx, ebx
mov eax, 0x1d06c648
mov edx, 0xa1ca19d1
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c530
and ax, 0xf
lea ecx, [esi - 0x39b8]
xor ax, cx
xor ax, di
mov word [ebp + esi*2 - 0x40], ax
inc esi
cmp esi, 0x18
jb 0x416db4
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x54]
push 0
push dword [ebp - 0x50]
push esi
push ecx
push dword [eax + 0x28]
push edi
call fcn.00411810
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esp, 0x18
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416e2f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x416e4a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x416e6f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x416e6f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x416e6f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c10d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00410d90
int3