Function at 0x418c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x22f0
call fcn.0053a340
mov esi, esp
mov dword [esi + 0x22d8], ebp
mov dword [esi + 0x22dc], esp
mov dword [esi + 0x22e8], 0xffffffff
mov dword [esi + 0x22e4], 0x537f30
lea eax, [esi + 0x22e0]
mov edx, dword fs:[0]
mov dword [esi + 0x22e0], edx
mov dword fs:[0], eax
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x418c80
test al, 1
je 0x418e7c
test al, 2
jne 0x418e9a
test al, 8
mov dword [esi + 8], ecx
jne 0x418cc0
add ecx, 0x20
lea edx, [esi + 0x40]
mov byte [esi + 0x22c6], 2
mov dword [esi + 0x22e8], 0
call fcn.004189d0
jmp 0x418ceb
test al, 0x10
je 0x418ceb
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x22c8]
mov dword [esi + 0x22e8], 0
test eax, eax
je 0x418f33
push dword [ecx + 0x22cc]
call dword [eax + 8]
add esp, 4
mov ebx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edx, eax
or edx, ecx
je 0x418dab
mov edi, dword [ebx + 0x20]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
xor eax, dword [edi + 0xd0]
xor ecx, dword [edi + 0xd4]
or ecx, eax
jne 0x418f0e
mov eax, dword [ebx + 8]
mov edx, dword [edi + 0xcc]
mov ecx, dword [edi + 0xc0]
mov eax, dword [eax + 0x24]
and edx, dword [ebx + eax]
lea edx, [edx + edx*2]
lea eax, [ecx + edx*4]
mov dword [esi + 4], eax
xor eax, eax
mov ah, 1
lock cmpxchg byte [ecx + edx*4], ah
jne 0x418e51
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + eax]
test ecx, ecx
je 0x418daf
mov edx, dword [ecx + 8]
mov eax, dword [ebx + eax + 4]
mov dword [esi], edi
mov edx, dword [edx + 0x1c]
mov dword [ecx + edx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
mov edi, dword [ebx + eax + 4]
test edi, edi
je 0x418dcb
mov edx, dword [edi + 8]
mov eax, dword [ebx + eax]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x1c]
mov dword [edi + edx], eax
mov edi, dword [esi]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + eax + 4], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + eax], 0
lock dec dword [edi + 0xc8]
jmp 0x418dd6
xor ebx, ebx
jmp 0x418de4
mov ecx, dword [esi + 4]
mov edx, ebx
xor ebx, ebx
cmp dword [ecx + 4], edx
jne 0x418dd6
mov ebx, dword [esi + 8]
mov dword [esi], edi
mov edi, dword [ebx + eax + 4]
mov dword [ecx + 4], edi
test edi, edi
jne 0x418d76
mov edx, ebx
xor ebx, ebx
mov edi, dword [esi]
cmp dword [ecx + 8], edx
je 0x418e43
xor edx, edx
mov al, 1
lock cmpxchg byte [ecx], dl
jne 0x418e68
cmp ebx, 1
mov eax, 2
mov ecx, dword [esi + 8]
sbb eax, 0
mov dword [esi + 0xc], eax
shl eax, 6
neg eax
lock xadd dword [ecx], eax
shr eax, 6
cmp eax, dword [esi + 0xc]
jb 0x418eb8
jne 0x418e2f
mov dword [esi + 0x22e8], 5
call fcn.0040d530
mov eax, dword [esi + 8]
push dword [eax - 4]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x22e0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esi + 8]
mov edx, dword [ebx + eax]
mov dword [ecx + 8], edx
jmp 0x418d8d
mov ecx, dword [esi + 4]
mov dword [esi + 0x22e8], 0xffffffff
call fcn.0053e0c0
jmp 0x418d48
mov dword [esi + 0x22e8], 0xffffffff
call fcn.0053dda0
jmp 0x418de4
mov dword [esi + 0x22e8], 0xffffffff
mov ecx, str.assertion_failed:_prev.is_running__
mov edx, 0x23
push 0x5a8048
call fcn.0053bbd0
mov dword [esi + 0x22e8], 0xffffffff
mov ecx, 0x5a8058
mov edx, 0x25
push 0x5a8080
call fcn.0053bbd0
lea ecx, [esi + 0x24]
lea edx, [esi + 0xc]
mov dword [esi + 0x28], 0x5a80a0
mov dword [esi + 0x2c], 2
mov dword [esi + 0x38], 0
mov dword [esi + 0x24], eax
mov dword [esi + 0x22e8], 0xffffffff
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x10]
mov dword [esi + 0x14], 0x453380
mov dword [esi + 0x18], edx
mov edx, 0x5a80b0
mov dword [esi + 0x1c], 0x453380
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x28]
mov dword [esi + 0x34], 2
call fcn.0053ba80
add edi, 0xd0
lea eax, [esi + 0x28]
mov dword [esi + 0x28], 0
mov dword [esi + 0x22e8], 0xffffffff
lea ecx, [esi + 0x10]
mov edx, edi
push eax
call fcn.00546de0
lea ecx, [esi + 0x40]
mov edx, 0x5a7d70
mov dword [esi + 0x40], 0x5a7d68
mov dword [esi + 0x44], 1
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], str.Index_out_of_bounds
mov dword [esi + 0x4c], 0
call fcn.0053ba80
ud2