Function at 0x4098c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5426a2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x593dc0]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
call fcn.00415eb7
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40990d
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], edi
call fcn.00415eb7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x409939
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 1
call fcn.004096c0
add esp, 8
test al, al
jne 0x4099af
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x409c03
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401000
mov edx, eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.004085e0
mov esi, eax
lea ecx, [ebp - 0x5c]
cmp ecx, esi
je 0x409a04
mov ebx, ecx
call fcn.0040b910
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor edi, edi
mov esi, dword [ebp - 0x6c]
cmp esi, edi
je 0x409a2c
mov edi, dword [ebp - 0x68]
cmp esi, edi
je 0x409a21
call fcn.00408e20
add esi, 0x18
cmp esi, edi
jne 0x409a12
mov esi, dword [ebp - 0x6c]
push esi
call fcn.00415273
add esp, 4
xor edi, edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x58]
cmp ebx, esi
jne 0x409ac0
cmp ebx, edi
je 0x409a6c
push ebx
call fcn.00415273
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x409c03
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x48]
call fcn.00401000
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.00408ec0
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409afe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x38], 0x4f001e
mov dword [ebp - 0x34], 0x10057
mov dword [ebp - 0x30], 0x170054
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x1d
mov dword [ebp - 0x24], 0x17001e
mov dword [ebp - 0x20], 0x170004
mov dword [ebp - 0x1c], 0x4f001e
mov dword [ebp - 0x18], 0x42
xor word [ebp + eax*2 - 0x3c], 0x72
inc eax
cmp eax, 0x13
jb 0x409b42
sub esp, 0xc
mov eax, esp
lea ecx, [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x3c]
mov dword [eax + 4], edx
push esi
lea edx, [ebp - 0x68]
push ebx
push edx
mov dword [eax + 8], ecx
call fcn.0040c950
add esp, 0x18
lea ecx, [ebp - 0x7c]
call fcn.00409d90
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x4c]
lea esi, [ebp - 0x7c]
call fcn.00406610
mov eax, dword [ebp - 0x78]
push eax
call fcn.00415273
add esp, 4
test ebx, ebx
je 0x409bb8
mov esi, ebx
call fcn.00408e20
add esi, 0x18
cmp esi, dword [ebp - 0x58]
jne 0x409ba2
push ebx
call fcn.00415273
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
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.0051d79f
mov esp, ebp
pop ebp
ret 4