Function at 0x489c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79f62b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x831184]
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
mov ebx, ecx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0xd8], ebx
call fcn.00404120
mov dword [ebp - 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
lea ecx, [ebx + 0x20]
mov byte [ebp - 4], 1
push 0
call fcn.007725c0
push ebx
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.00404120
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x100]
call fcn.00403b80
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00418020
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.00404220
lea ecx, [ebp - 0x100]
call fcn.00404490
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 9
call fcn.00404490
cmp dword [ebp - 0x44], 0x10
lea ebx, [ebp - 0x58]
mov edi, dword [ebp - 0x48]
cmovae ebx, dword [ebp - 0x58]
push 0x14
call fcn.0076e8c3
add esp, 4
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0xa
lea esi, [eax + 0xc]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.4.5.0
mov dword [ebp - 0xdc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042d730
mov dword [esi], eax
push 0
sub esp, 0x28
mov byte [ebp - 4], 0xb
mov eax, esp
mov edx, edi
mov ecx, ebx
mov dword [eax], vtable._x.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
call fcn.00488970
mov ebx, dword [ebp - 0xd4]
add esp, 0x2c
mov eax, dword [ebp - 0xd0]
mov dword [ebx + 0x18], esi
mov esi, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], eax
mov byte [ebp - 4], 0xc
test esi, esi
je 0x489df3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x489df3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x489df3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 9
xor eax, eax
mov dword [ebp - 0x28], 9
mov dword [ebp - 0x24], 0xc400c0
mov dword [ebp - 0x20], 0xc300cd
mov dword [ebp - 0x1c], 0xc40083
mov dword [ebp - 0x18], 0xdf00dc
mov dword [ebp - 0x14], 0xb200df
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x24], cx
inc eax
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x489e23
xor eax, eax
mov dword [ebp - 0x10c], 7
mov word [ebp + ecx*2 - 0x24], ax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x110], eax
lea edx, [ecx + 2]
mov word [ebp - 0x120], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489e60
sub ecx, edx
lea eax, [ebp - 0x24]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x120]
call fcn.004044f0
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00488c50
lea ecx, [ebp - 0x120]
call fcn.00404490
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x489f49
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x489f49
push eax
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00407ab0
push 0x74
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xe
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xcc]
call fcn.00774c70
push 0
lea eax, [ebx + 0x20]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xcc]
call fcn.007763c0
test al, al
je 0x489f5e
lea ecx, [ebp - 0xcc]
call fcn.00430850
lea ecx, [ebp - 0x40]
call fcn.00407a10
lea ecx, [ebp - 0x58]
call fcn.00407a10
mov eax, ebx
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.0076eb7e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x134]
push eax
call fcn.00489f90
mov ecx, eax
call fcn.004131e0
jmp 0x489f71
lea eax, [ebp - 0x108]
push eax
call fcn.00489ff0
mov ecx, eax
call fcn.004131e0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041f340
push 0x826c10
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3