Function at 0x412010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557048
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5b627c]
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.00422620
mov ecx, eax
call fcn.004225f0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x58]
sub eax, 0x10
push eax
call fcn.0040c650
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 0x41220b
call fcn.00414250
mov ecx, eax
test ecx, ecx
je 0x41226c
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.00412720
mov eax, dword [ebp - 0x4c]
mov esi, 0xda7f
mov edx, 0xda6f
mov ecx, 0xda78
add esp, 0x10
mov ebx, 0xf
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], eax
mov eax, 0xda2f
mov word [ebp - 0x40], ax
mov eax, 0xda68
mov word [ebp - 0x3e], si
mov word [ebp - 0x3c], dx
mov word [ebp - 0x3a], ax
mov eax, 0xda6d
mov word [ebp - 0x38], ax
mov eax, 0xda75
mov word [ebp - 0x36], ax
mov eax, 0xda79
mov word [ebp - 0x34], ax
mov eax, 0xda72
mov word [ebp - 0x32], ax
mov eax, 0xda74
mov word [ebp - 0x30], ax
mov eax, 0xda33
mov word [ebp - 0x2e], cx
mov word [ebp - 0x2c], ax
mov eax, 0xda35
mov word [ebp - 0x2a], ax
mov eax, 0xda7c
mov word [ebp - 0x28], ax
mov eax, 0xda6e
mov word [ebp - 0x26], ax
mov eax, 0xda71
mov word [ebp - 0x24], ax
mov eax, 0xda70
mov word [ebp - 0x22], ax
mov eax, 0xda2d
mov word [ebp - 0x20], ax
mov eax, 0xda7d
mov word [ebp - 0x1e], dx
mov word [ebp - 0x1c], si
xor esi, esi
mov word [ebp - 0x1a], cx
mov word [ebp - 0x18], ax
mov eax, 0xda65
mov word [ebp - 0x16], ax
mov eax, 0xda69
mov word [ebp - 0x14], ax
mov eax, 0xda23
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x40]
nop
mov ax, word [ebp + esi*2 - 0x40]
mov ecx, esi
and ecx, ebx
movzx edi, ax
cmp ecx, ebx
mov eax, 0x328eda09
mov edx, 0x59afe069
cmovae ecx, ebx
shl ecx, 2
call fcn.00466140
and ax, 0xf
lea ecx, [esi - 0x25f7]
xor ax, cx
xor ax, di
mov word [ebp + esi*2 - 0x40], ax
inc esi
cmp esi, 0x18
jb 0x412190
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.0040cbc0
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 0x41220b
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 0x412226
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x41224b
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41224b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41224b
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.00465d1b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040c140
int3