Function at 0x4124e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7158
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
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 - 0xe4], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xdc], 0x9c049c07
mov dword [ebp - 0xd8], 0x9c029c05
mov dword [ebp - 0xd4], 0x9c4e9c00
mov dword [ebp - 0xd0], 0x9c599c5a
mov dword [ebp - 0xcc], 0x9c0f9c00
mov dword [ebp - 0xc8], 0x9c549c0e
mov dword [ebp - 0xc4], 0x9c099c01
mov dword [ebp - 0xc0], 0x9c1f9c15
mov dword [ebp - 0xbc], 0x9cf79c10
mov dword [ebp - 0xb8], 0x9cec9ce0
mov dword [ebp - 0xb4], 0x9ce79cad
mov dword [ebp - 0xb0], 0x9ceb9cea
mov dword [ebp - 0xac], 0x9ceb9ca8
mov dword [ebp - 0xa8], 0x9cef9ce1
mov dword [ebp - 0xa4], 0x9ce79ce8
mov dword [ebp - 0xa0], 0x9cfe9cf8
mov dword [ebp - 0x9c], 0x9cf19ceb
mov dword [ebp - 0x98], 0x9cf79ce5
mov dword [ebp - 0x94], 0x9cee9cbc
mov dword [ebp - 0x90], 0x9ce19cfd
mov dword [ebp - 0x8c], 0x9cb79cc3
mov dword [ebp - 0x88], 0x9cef9ced
mov dword [ebp - 0x84], 0x9cfb9cf2
mov dword [ebp - 0x80], 0x9cff9ce8
mov dword [ebp - 0x7c], 0x9cc79cf1
mov dword [ebp - 0x78], 0x9cd79c8e
mov dword [ebp - 0x74], 0x9cc09cd3
mov dword [ebp - 0x70], 0x9cd29cc4
mov dword [ebp - 0x6c], 0x9c869cc2
mov dword [ebp - 0x68], 0x9cc79cd1
mov dword [ebp - 0x64], 0x9cc7
mov byte [ebp - 0x60], 1
nop word [eax + eax]
lea ecx, [eax - 0x6391]
xor word [ebp + eax*2 - 0xdc], cx
inc eax
cmp eax, 0x3d
jb 0x412650
lea eax, [ebp - 0xdc]
mov byte [ebp - 0x60], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040aab0
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 0x6650e8
push eax
call fcn.0040d450
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.0040d0c0
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 0x4121b0
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 - 0xe4]
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.0040d0b0
call fcn.005ce7a3
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe0]
push 0x678c18
push eax
call fcn.005cb657
call fcn.0055ca1a
call fcn.005ce7a3
int3