Function at 0x4124c0
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], 0xa1fba1e6
mov dword [ebp - 0xe8], 0xa1e1a1e4
mov dword [ebp - 0xe4], 0xa1bca1a8
mov dword [ebp - 0xe0], 0xa1e2a1bb
mov dword [ebp - 0xdc], 0xa1e0a1e1
mov dword [ebp - 0xd8], 0xa1e3a1b6
mov dword [ebp - 0xd4], 0xa1f3a1ef
mov dword [ebp - 0xd0], 0xa1f2a1fd
mov dword [ebp - 0xcc], 0xa1fea1e9
mov dword [ebp - 0xc8], 0xa18fa1ce
mov dword [ebp - 0xc4], 0xa1cca1c1
mov dword [ebp - 0xc0], 0xa18aa1c9
mov dword [ebp - 0xbc], 0xa1cfa1c5
mov dword [ebp - 0xb8], 0xa1caa1cd
mov dword [ebp - 0xb4], 0xa1dea1c1
mov dword [ebp - 0xb0], 0xa1c9a1dc
mov dword [ebp - 0xac], 0xa1dba1cf
mov dword [ebp - 0xa8], 0xa19ea1d5
mov dword [ebp - 0xa4], 0xa1dba1c8
mov dword [ebp - 0xa0], 0xa1e1a1c3
mov dword [ebp - 0x9c], 0xa1c4a199
mov dword [ebp - 0x98], 0xa1d0a1d0
mov dword [ebp - 0x94], 0xa1d3a1d9
mov dword [ebp - 0x90], 0xa1d3a1dd
mov dword [ebp - 0x8c], 0xa190a1d9
mov dword [ebp - 0x88], 0xa1ada1a5
mov dword [ebp - 0x84], 0xa1a0a1a7
mov dword [ebp - 0x80], 0xa1b7a1b0
mov dword [ebp - 0x7c], 0xa1a9a1a9
mov dword [ebp - 0x78], 0xa1bca1e7
mov dword [ebp - 0x74], 0xa1afa1ba
mov dword [ebp - 0x70], 0xa1b9a1ad
mov dword [ebp - 0x6c], 0xa1e1a1ab
mov dword [ebp - 0x68], 0xa1bca1a8
mov dword [ebp - 0x64], 0xa1be
mov byte [ebp - 0x60], 1
nop
lea ecx, [eax - 0x5e72]
xor word [ebp + eax*2 - 0xec], cx
inc eax
cmp eax, 0x45
jb 0x412650
lea eax, [ebp - 0xec]
mov byte [ebp - 0x60], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040aa90
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.0040d430
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 0x4126ff
cmp ecx, dword [esi - 0x10]
jne 0x4126ff
lea ebx, [esi - 0x10]
lock inc dword [eax]
jmp 0x412729
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x412970
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.0040d0a0
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 0x41276c
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x412764
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x41297a
mov edx, ebx
lea ecx, [ebp - 0x5c]
call fcn.004063f0
call fcn.004504b0
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.00453580
push 1
push 0x2b
push esi
call fcn.00453580
push 1
push 0x34
push esi
call fcn.00453580
push 0
push 0x40
push esi
call fcn.00453580
push 0
push 0x51
push esi
call fcn.00453580
push 1
push 0x2d
push esi
call fcn.00453580
add esp, 0x48
push 0x412190
push 0x4e2b
push esi
call fcn.00453580
lea eax, [edi + 4]
push eax
push 0x2711
push esi
call fcn.00453580
push esi
call fcn.004504f0
push esi
mov dword [ebp - 0x1c], eax
call fcn.00450490
mov edx, dword [ebp - 0x48]
add esp, 0x20
cmp edx, 0x10
jb 0x41282e
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412975
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 0x41285e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x41297a
mov dword [ebp - 4], 1
jmp 0x412891
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 0x412991
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 0x41291f
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412915
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412996
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 0x412950
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.0040d090
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