Function at 0x412490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7158
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
xor eax, eax
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xec], 0xebb0ebab
mov dword [ebp - 0xe8], 0xebb6ebb1
mov dword [ebp - 0xe4], 0xebe7ebfd
mov dword [ebp - 0xe0], 0xebbdebe6
mov dword [ebp - 0xdc], 0xebbbebbc
mov dword [ebp - 0xd8], 0xebb4ebe3
mov dword [ebp - 0xd4], 0xebb8ebba
mov dword [ebp - 0xd0], 0xebbdebb0
mov dword [ebp - 0xcc], 0xebb5eba4
mov dword [ebp - 0xc8], 0xebf8ebbb
mov dword [ebp - 0xc4], 0xebb7ebb4
mov dword [ebp - 0xc0], 0xebf5ebb4
mov dword [ebp - 0xbc], 0xebb4ebb8
mov dword [ebp - 0xb8], 0xebbdebb8
mov dword [ebp - 0xb4], 0xeb95ebb4
mov dword [ebp - 0xb0], 0xeb86eb91
mov dword [ebp - 0xac], 0xeb90eb82
mov dword [ebp - 0xa8], 0xebc9eb80
mov dword [ebp - 0xa4], 0xeb80eb9d
mov dword [ebp - 0xa0], 0xebbeeb9e
mov dword [ebp - 0x9c], 0xeb9febc4
mov dword [ebp - 0x98], 0xeb87eb85
mov dword [ebp - 0x94], 0xeb98eb8c
mov dword [ebp - 0x90], 0xeb9ceb90
mov dword [ebp - 0x8c], 0xebdbeb94
mov dword [ebp - 0x88], 0xeb9aeb90
mov dword [ebp - 0x84], 0xeb9beb92
mov dword [ebp - 0x80], 0xeb88eb8d
mov dword [ebp - 0x7c], 0xeb92eb94
mov dword [ebp - 0x78], 0xeb8bebd2
mov dword [ebp - 0x74], 0xec64eb8f
mov dword [ebp - 0x70], 0xec76ec60
mov dword [ebp - 0x6c], 0xec2aec66
mov dword [ebp - 0x68], 0xec6bec7d
mov dword [ebp - 0x64], 0xec6b
mov byte [ebp - 0x60], 1
nop
lea ecx, [eax - 0x143d]
xor word [ebp + eax*2 - 0xec], cx
inc eax
cmp eax, 0x45
jb 0x412620
lea eax, [ebp - 0xec]
mov byte [ebp - 0x60], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040aa60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 0
push 0x664884
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.004042b0
push 0
mov byte [ebp - 4], 1
call fcn.005d3b64
push eax
call fcn.005cec66
call fcn.005cec45
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push 0x6650e0
push eax
call fcn.0040d400
mov byte [ebp - 4], 2
add esp, 0x18
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x78], 0
mov dword [edi + 0x74], 1
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x4126cf
cmp ecx, dword [esi - 0x10]
jne 0x4126cf
lea ebx, [esi - 0x10]
lock inc dword [eax]
jmp 0x4126f9
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x412940
mov eax, dword [esi - 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.0040d070
add esp, 8
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
push 0
lea ecx, [edi + 4]
mov byte [ebp - 4], 3
push 0x664884
call fcn.004042b0
cmp dword [ebx - 0xc], 0
jne 0x41273c
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x412734
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x41294a
mov edx, ebx
lea ecx, [ebp - 0x5c]
call fcn.004063f0
call fcn.00450480
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
mov esi, eax
cmovae ecx, dword [ebp - 0x5c]
push ecx
push 0x2712
push esi
call fcn.00453550
push 1
push 0x2b
push esi
call fcn.00453550
push 1
push 0x34
push esi
call fcn.00453550
push 0
push 0x40
push esi
call fcn.00453550
push 0
push 0x51
push esi
call fcn.00453550
push 1
push 0x2d
push esi
call fcn.00453550
add esp, 0x48
push 0x412160
push 0x4e2b
push esi
call fcn.00453550
lea eax, [edi + 4]
push eax
push 0x2711
push esi
call fcn.00453550
push esi
call fcn.004504c0
push esi
mov dword [ebp - 0x1c], eax
call fcn.00450460
mov edx, dword [ebp - 0x48]
add esp, 0x20
cmp edx, 0x10
jb 0x4127fe
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4127f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412945
push edx
push ecx
call fcn.0055e71a
add esp, 8
or esi, 0xffffffff
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
add ebx, 0xfffffff0
mov byte [ebp - 0x5c], 0
mov eax, esi
mov byte [ebp - 4], 2
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41282e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x41294a
mov dword [ebp - 4], 1
jmp 0x412861
mov eax, dword [edi + 0x98]
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x94]
mov ecx, dword [ecx + 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x78]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 1
test ecx, ecx
je 0x412961
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x24]
push edx
call dword [eax + 8]
mov edi, dword [edi + 0x78]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4128ef
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4128e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412966
push edx
push ecx
call fcn.0055e71a
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
add eax, 0xfffffff0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x412920
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret 4
call fcn.0040d060
call fcn.005ce7a3
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf0]
push 0x678c64
push eax
call fcn.005cb657
call fcn.0055ca1a
call fcn.005ce7a3
int3